Roassal: Opacity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Roassal: Opacity

Dennis Schenk
Hi,

Is it possible in Roassal to draw nodes in a layout with different opacities? A simple example would be: drawing a tree with nodes less opaque the deeper their nesting level is.

Cheers,
Dennis

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal: Opacity

abergel
Is it possible in Roassal to draw nodes in a layout with different opacities? A simple example would be: drawing a tree with nodes less opaque the deeper their nesting level is.

Well... You will need to manually assign the color to the nodes. 

I've just made the following example:


Alpha is interesting to make translucent colors.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
view shape rectangle borderColor: Color veryVeryLightGray.
view nodes: (T copyFrom: 1 to: 10) forEach: [ :aClass | 
view shape rectangle borderColor: Color white.
view nodes: aClass methods.

view shape line color: (Color blue alpha: 0.2).
view edges: aClass methods from: #yourself toAll: [ :m | m queryAllOutgoingInvocations opposites asArray ].
view gridLayout.
].
view gridLayout.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev