|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
/** 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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> 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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |