POV-Ray : Newsgroups : povray.binaries.utilities : New version of Farger.inc Server Time
18 May 2024 08:21:51 EDT (-0400)
  New version of Farger.inc (Message 7 to 16 of 40)  
<<< Previous 6 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Sven-Erik Andersen
Subject: Re: New version of Farger.inc
Date: 10 Jan 2020 04:30:01
Message: <web.5e1843f8f66b1794d26876bc0@news.povray.org>
New version where I fixed a wrongly named color, and I created a HTML-file
showing the various named colors.

Brgds,
Sven-Erik Andersen


Post a reply to this message


Attachments:
Download 'farger.inc-3.1.zip' (92 KB)

From: jr
Subject: Re: New version of Farger.inc
Date: 11 Jan 2020 05:55:01
Message: <web.5e19a8fcf66b17948c662f470@news.povray.org>
hi,

"Sven-Erik Andersen" <sve### [at] gmailcom> wrote:
> New version where I fixed a wrongly named color, and I created a HTML-file
> showing the various named colors.

thanks, very useful, except..  :-)  the page being so large will benefit from
having links to get to each table, imo.  the attached patch adds navigation, to
apply cd into same directory as 'farger.inc.html', then:
  $ zcat /path/to/farger.nav.diff.gz | patch --verbose -p1


regards, jr.


Post a reply to this message


Attachments:
Download 'farger.nav.diff.gz' (2 KB)

From: Sven-Erik Andersen
Subject: Re: New version of Farger.inc
Date: 11 Jan 2020 09:50:00
Message: <web.5e19e02ff66b1794d26876bc0@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> thanks, very useful, except..  :-)  the page being so large will benefit from
> having links to get to each table, imo.  the attached patch adds navigation, to
> apply cd into same directory as 'farger.inc.html', then:
>   $ zcat /path/to/farger.nav.diff.gz | patch --verbose -p1
>
>
> regards, jr.

Thanks jr! I have added the navigation to the HTML-file.

Updated version is available on Github:
https://github.com/SvenErik1968/Farger.inc


Post a reply to this message

From: Melody
Subject: Re: New version of Farger.inc
Date: 18 Jan 2020 05:20:01
Message: <web.5e22db53f66b17949da690110@news.povray.org>
/**  Using clipboard - needs a recent version - Chrome is OK -
 CLICK A COLOR, = COPY to Clipboard */

var nColors = 1819, mousex, mousey, GG, Width = 1260, patchSize = 21;

// "#declare MediumSlateBlue = color red 0.498039 blue 1.0;" ,
// "#declare MediumSpringGreen = color red 0.498039 green 1.0;" ,
// had no green blue --- yellow had no spaces
// ? "#declare Mica = color Black; // needed in textures.inc" , fits nothing
//"#declare OrangeRed = color red 1.0 green 0.25;" no blue

So that's 3, I don't really know the real color. Everything patched.
Set patchSize in drawpalette.js if they don't all fit in your browser frame.

Can't draw in java yet? You can now. Sweet.


Post a reply to this message


Attachments:
Download 'povcolorselect.zip' (34 KB)

From: Melody
Subject: Re: New version of Farger.inc
Date: 18 Jan 2020 06:20:00
Message: <web.5e22e8faf66b17949da690110@news.povray.org>
function patchHighLight(i) {
  var w = Width, sz = patchSize;
  var m = Math.floor(w/sz);
  var x = (i % m) * sz;
  var y = Math.floor(i / m) * sz;
  GG.setColor("#FFFFFF");
  GG.drawRect(x,y,sz,sz);
  GG.paint();
}

and add patchHighLight(m);
in mouseDwn

now you need to invert the color of the frame;
white on white wont do much, heh.
i see names then go, ??? where was that ??
 lol

highlight it.


Post a reply to this message

From: Melody
Subject: Re: New version of Farger.inc
Date: 18 Jan 2020 20:40:00
Message: <web.5e23b338f66b17949da690110@news.povray.org>
Forgot something. Now can click on text field.
Don't need to unless clipboard fails.
function mousedwn() looks like this.

  var m = Math.floor(Width/patchSize);
  if ((mousex < (patchSize * m)) && (mousey > 22)) {
    echo(" ");
    m = whichcolor();
    patchHighLight(m);
    buffer(m);
  }


Post a reply to this message

From: Sven-Erik Andersen
Subject: Re: New version of Farger.inc
Date: 19 Jan 2020 16:15:01
Message: <web.5e24c5bbf66b1794d26876bc0@news.povray.org>
Releases a large update. The include-files have been split into separate files.
Added more named colors, a total now of 6568 colors.

Also improved the simple documentation with a separate HTML-file for each
include-file that shows the color name, the RGB HEX-value, a color sample and a
button that will copy the color name to the clipboard.

Updated version is available on GitHub at
https://github.com/SvenErik1968/Farger.inc/

Brgds,
Sven-Erik


Post a reply to this message


Attachments:
Download 'farger.inc-4.0.zip' (229 KB)

From: Melody
Subject: Re: New version of Farger.inc
Date: 20 Jan 2020 01:00:00
Message: <web.5e2540e3f66b17949da690110@news.povray.org>
> 0 not 22,

offset a layer, have to remember the offset. doh
here's the update.


Post a reply to this message


Attachments:
Download 'povcolorselect.zip' (34 KB)

From: Melody
Subject: Re: New version of Farger.inc
Date: 22 Jan 2020 06:40:01
Message: <web.5e2832f9f66b17949da690110@news.povray.org>
And again !! in previous version, old html was saved. doh!
Previous wasn't offset 22.

Now, this one is for Michael who seemed to not get HSV.
Button says click. Click it! HSV HSL ta dah.
Example usage.

Unnamed - just says "rgb" til I figure out what colorhue(i) will be;
to get back to POV colors, reload.

In C, the routines ran fine. Translated to java was giving negative numbers.
I usually find that kind of stuff. Nope. I just clamped 0-1 and it's fine.


Post a reply to this message


Attachments:
Download 'povcolorselect2.zip' (35 KB)

From: Melody
Subject: Re: New version of Farger.inc
Date: 22 Jan 2020 06:55:01
Message: <web.5e283746f66b17949da690110@news.povray.org>
so thats what happens when you go over 1 input.
you get negative numbers, now I know.

that routine wasnt supposed the increment saturation, it was already at 1, I
forgot that.


Post a reply to this message


Attachments:
Download 'povcolorselect3.zip' (35 KB)

<<< Previous 6 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.