Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Aug 13, 2020 12:19 am

All times are UTC - 5 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Gradient Figureshape (Group2D)
PostPosted: Tue May 28, 2013 12:33 pm 
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
does anyone know of a FAST way to color a Figureshape (or GROUP2D) with a Gradient color?

The only way I have come up with is to draw the figure shape on a PICTURE object with a fixed solid color, and then do a Gradient Fill on there (I have the code to do that)... and then cut the image and paste it on to my main canvas..

I have not implemented that (yet), but it seems kinda slow (relatively speaking)

I have the ability to do the one on the left... I need the one on the right (this and 250 other shapes), with any combo of colors I choose


Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind

Reply with quote  
 Post subject: Re: Gradient Figureshape (Group2D)
PostPosted: Thu May 30, 2013 7:05 am 

Joined: Thu Apr 10, 2008 6:03 am
Posts: 303
Location: Paris-La Défense, France
You could try this:

-Create the picture that will hold the gradient

-Fill the mask of that picture to White

-Draw the Object2D using Black color to the mask.

You should then get a picture that holds the shape of your Object2D with a gradient fill.

Check my Website for high quality custom controls and classes (no plugins) for Windows, Mac OS and Linux
REALBasic 2012 R2 on Win 7 & Mac OS X

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group