Re: Paintbrush Palette

new topic     » goto parent     » topic index » view thread      » older message » newer message

>  Hi again.
>  Can anyone, that use Windows MS-Paint, tell me something: what is the
> color 16 in the palette saved by Paint? Anyone have a tip to turn this
> color ?
>  I made a fader that used the recurse of palette, but turning the color 16
> in the palette in Euphoria, did the fader slower and the result wasn't
> good.

Eduardo it's really simple!
Just make a .bmp with paintbrush, then make an Euphoria program that
reads it, and then you have the palette!!!

Example:

include image.e

sequence image
sequence palette

image= read_bitmap("myImage.bmp")
palette=image[1]
image=image[2]

Now "palette" holds the palette of the image and "image" the image
data.
The structure of "palette" is described in Euphoria Library Functions
documentation, but in a nut it's a sequence on sequences, each one
having the RBG (reb, blue, green) (or is it RGB???) of a given color
from the palette.

Regards,
  Daniel Berstein
  danielberstein at usa.net
  http://www.geocities.com/SiliconValley/Heights/9316

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu