jiayouxjh / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Set pencolor in Lua-scripting #402

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to have a function for setting the selected/active pencolor 
(ex: setforecolor()); would be useful for scripts selecting/setting an AA-color 
etc. in the current palette.

Original issue reported on code.google.com by annas...@hotmail.com on 11 Nov 2010 at 12:57

GoogleCodeExporter commented 9 years ago
Implemented in r1652. It was very small change, sorry about delay, I got 
sidetracked.

Original comment by yrizoud on 3 Dec 2010 at 7:08

GoogleCodeExporter commented 9 years ago
Great, looking forward to testing it. :)

Original comment by annas...@hotmail.com on 3 Dec 2010 at 7:36

GoogleCodeExporter commented 9 years ago
Works like a charm. I now have scripts that allows you to cycle up/down through 
the colors in the palette by (perceptual) brightness. So nice! :)

Original comment by annas...@hotmail.com on 4 Dec 2010 at 12:51

GoogleCodeExporter commented 9 years ago
Note there already exists something similar: There are shortcuts for going to 
the next and previous colors in the current range. They use the settings for 
Shade (current range, step, looping mode). It's mostly useful when shade mode 
is off and if you spend the time to declare the color ranges.

Original comment by yrizoud on 4 Dec 2010 at 3:02