Hi all,
I’d like to report a bug in Roassal: RTDirectedLine does not support the changing of its color. Below is Alex’ example of edge color changing where I substituted RTDirectedLine for RTLine. You will see that the ‘change color’ block no longer works.
| v es edges shape | v := RTView new. es := (RTEllipse new size: 20; color: (Color blue alpha: 0.4)) elementsOn: (1 to: 20). RTCircleLayout new initialRadius: 100; on: es. v addAll: es.
shape := RTDirectedLine new color: Color red. edges := RTEdge buildEdgesFromObjects: (1 to: 20) from: [ :value | value // 2 ] to: #yourself using: shape inView: v.
v canvas addMenu: 'change color' callback: [ edges do: [ :e | e trachelShape color: Color random ]. v signalUpdate ]. v open
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile
Hi Johan,
Well spotted. I’ve just fixed it! Update and you will be able to change color of bezier lines and directed lines...
Cheers, Alexandre
On May 2, 2014, at 9:16 PM, Johan Fabry jfabry@dcc.uchile.cl wrote:
Hi all,
I’d like to report a bug in Roassal: RTDirectedLine does not support the changing of its color. Below is Alex’ example of edge color changing where I substituted RTDirectedLine for RTLine. You will see that the ‘change color’ block no longer works.
| v es edges shape | v := RTView new. es := (RTEllipse new size: 20; color: (Color blue alpha: 0.4)) elementsOn: (1 to: 20). RTCircleLayout new initialRadius: 100; on: es. v addAll: es.
shape := RTDirectedLine new color: Color red. edges := RTEdge buildEdgesFromObjects: (1 to: 20) from: [ :value | value // 2 ] to: #yourself using: shape inView: v.
v canvas addMenu: 'change color' callback: [ edges do: [ :e | e trachelShape color: Color random ]. v signalUpdate ]. v open
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev