[Newbies] Coloring images with transparant parts

K. K. Subramaniam subbukk at gmail.com
Tue Nov 18 14:59:01 UTC 2008


On Tuesday 18 Nov 2008 7:38:27 pm Matthias Korn wrote:
> I have a .png or .gif image (e.g. an ImageMorph) with transparent parts
> (e.g. a circle where the outer part is transparent). I now want to have
> this one image and color it programmatically with other colors (e.g. the
> circle appearing in slight red, green, blue ...).
Take a look at SketchMorph>>recolorPixelsOfColor: method. Essentially, you 
will have to make a new sketch by replacing colors in the color map of the 
sketch's form.

HTH .. Subbu


More information about the Beginners mailing list