NeoforceControls / Neoforce-Mono

MonoGame Version Currently 3.2
33 stars 6 forks source link

create a change color #7

Open PedroAlvesq opened 10 years ago

PedroAlvesq commented 10 years ago

how i create a color change like this example example

Grimston commented 10 years ago

Those are fairly advanced color selection controls.

I'm just guessing here: You would need to render the colors as a gradient and blend black and white (white top to middle black bottom to middle) into it to get the correct shading on the rest.

You could then use color picking from the texture data and mouse position to select the color.

Easier way would be to copy the image from another selection control and render that and still pick the color.

A simpler control could be build with sliders one for each color channel (RGB)

Then you can just listen to the events for when the value changes and draw a small example box of the color.