From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4370411c07c164af X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Color gradients lib Date: Tue, 08 Feb 2011 14:16:13 +0100 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: 1X492nphQfDh1OTnmp4oXg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.01 (Win32) X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:16988 Date: 2011-02-08T14:16:13+01:00 List-Id: Hi Alex, Any graphic capabilities requires an output =E2=80=9Cdevice=E2=80=9D, ei= ther memory = bitmap, screen, image file, and the latter may be bitmap, PNG, JPEG. I = feel you miss to provide a context here. Are you seeking for a library t= o = generate shapes filled with gradient to which kind of output ? This is = important to know. Do not know anything about the context, however an idea : is SVG a valid= = option for you ? For graphs, pies, and other formal representations and = = plotted images, SVG is rather good (if no dynamic features is required),= = and it has gradient capabilities: http://www.w3.org/TR/SVG/pservers.html Otherwise, please tell more about the context and any relevant technical= = details. Le Tue, 08 Feb 2011 11:58:00 +0100, Alex R. Mosteo = a =C3=A9crit: > Hello, > > I need to plot some data (2D maps) and I have everything in my drawing= > library except some readily usable gradients. I was wondering if some = Ada > library out there has this before making my custom one. > > I would need one to represent bad/good ranges (e.g. the default gradie= nt > blue-cold to red-hot in matlab), and another to show a density of samp= les > (perhaps simple shades of gray). > > The second one is straightforward, but the first one seems like someth= ing > pretty standard, so I wouldn't like to create one that is similar but = not > the same. > > (e.g. the first example in > http://www.mathworks.com/help/techdoc/visualize/f0-18164.html#f0-5919 = ) > > Thanks for any suggestions. -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens. =E2=80=9CI am fluent in ASCII=E2=80=9D [Warren 2010]