[Drawkit] com.freeverselib missing from Drawkit demo?

Graham Cox graham.cox at bigpond.com
Fri Jun 13 22:42:52 PDT 2008


On 14 Jun 2008, at 3:32 pm, Troy Rollins wrote:

> However, I also don't see any way in the demo app to get a color  
> picker, so I end up with everything gray and with the basic style.  
> This is after a clean and build. I'm sure I can investigate this one  
> at the source, but I'd welcome any thoughts on it.


In DrawKit, an object's appearance is defined by a separate object  
called a style (DKStyle) which in turn implements all the strokes,  
fills, gradients, patterns, what-have-you. In the Demo App, you have a  
fairly raw (but quite powerful) interface to the style. When the  
object is selected, the Style Inspector will allow you to edit the  
style. First copy the default style - the "Clone Style" button, then  
you can select each component in the list and edit the properties of  
it. A DKFill for example has a colour widget which will bring up the  
Color Panel.

You can create a huge number of effects with styles, but the interface  
may take a while to get the hang of - it's intended to allow a DK  
programmer to explore the possibilities rather than represent a  
realistic user interface.

Feel free to ask for any further clarification on its use, etc.

cheers, Graham


More information about the Drawkit mailing list