Me n My Programming

If Only I Have TIme

Marama Code 104 ~ Change Shape Color

RGB rgb = new RGB(0, 0, 0); // black

shape.getProperties().setPropValue(“color”, rgb); // set the shape color to black

*** first you need to export the fillColor property in MaramaShapeType, give the name “color” to it

*** Update ***

I’ve been doing it wrong actually. The correct way to change shape colour is:

shape.setPropertyValue(“color”, rgb);


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


This entry was posted on May 20, 2010 by in Life on Marama.
%d bloggers like this: