Pick two colors? FG / BG

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
CartoonMonkey
Posts: 1087
Joined: 01 Jun 2007, 18:47
Location: Portland, Oregon
Contact:

Pick two colors? FG / BG

Post by CartoonMonkey »

Is there a way to pick both colors at the same time? Foreground and background?

I would like to select a light color from the screen or palette, and have a matching, slightly darker color be picked automatically for the background..
(For a brush I'm making..)

C
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: Pick two colors? FG / BG

Post by ZigOtto »

CartoonMonkey wrote:Is there a way to pick both colors at the same time? Foreground and background?

I would like to select a light color from the screen or palette, and have a matching, slightly darker color be picked automatically for the background..
(For a brush I'm making..)

C
sure,for this job, george is your friend ! :)

you can pick the related lines of the code (setting colB from colA setting, % lighter or darker)
in the script of the watercolor brushes plug from the content sharing,
from memory, a couple o brushes work with a colB derivated from colA.

ps: here's the "BfromAGrgCmd" script : download/file.php?id=2599
of course, you can tweak the level of change as you want ... 8)
Last edited by ZigOtto on 15 Mar 2014, 15:05, edited 1 time in total.
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Pick two colors? FG / BG

Post by Svengali »

I almost always select AB colors in pairs for the brushes I make. You can setup a custom STORE AB button using one of the Tool Grabber commands:

GrabColor:ABPen

Each time you click your custom pick AB button, it automatically generates a new, unique color button where the current B color is the background and the current A color is a superimposed circle. You can quickly setup a whole custom panel of such pairs for any project.

Note that each new AB color button is added to the bottom of the panel and can then be moved to which ever subset you want. Clicking any color icon assigns the APen and BPen to have the values stored inside that button.
Custom AB Color Panel.jpg
Custom AB Color Panel.jpg (15.3 KiB) Viewed 8180 times
oops! ===============================================================================

Re-reading your question, I see that what you really want is the ability to select an existing color from the frame as the APen and have a slightly darker version of that color automatically assigned to the BPen. Hmm.

Check out the button command = KeyStroke Key:Color:Luminosity -

It only works by decrementing luminosity one unit at a time, if you knew how many units you wanted, you could probably setup a button that would first copy APen to BPen, then decrement APen x number of units (repeating the Key:Color:Luminosity - command) then swap APen and BPen something like this:
Luminosity button script.jpg
Luminosity button script.jpg (41.66 KiB) Viewed 8180 times
Note that this would be a much easier thing to do if GEORGE had a command that let you set Hue, Saturation and/or Luminosity amounts for the APen and BPen colors directly... (requested before)

Sven
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
CartoonMonkey
Posts: 1087
Joined: 01 Jun 2007, 18:47
Location: Portland, Oregon
Contact:

Re: Pick two colors? FG / BG

Post by CartoonMonkey »

Ah thank you! That works perfectly.
Uploading my new brushes to content sharing..
:)

C
Post Reply