Setting attributes (like colour) in input box of an object, being defined in the input box
Answered
Good morning,
I'm making a drawing, based on some horizontal lines.
In order to distinguish those lines, I'd like to give them a separate colour.
In order to draw the lines, I use the Segment() function, which is working fine:
- Segment[Point[{1,2}];Point[{2,1}]]
(I know this line is not horizontal, it's just an example)
Drawing this line is working fine.
In order to give a colour for this line, I try to use the SetColour() functin, which is not working fine:
- SetColour[Segment[Point[{1,2}];Point[{2,1}]], "blue"]
When I use this function for setting an object which already exists, this is working fine:
- SetColour[A, "blue"]
(where A is an already existing point)
Am I doing something wrong or can you confirm that the "SetColour()" function does not work when the object has not been created before?
quote: can you confirm that the "SetColour()" function does not work when the object has not been created before?
Yes, It's must be a object with a name.
(not named-objects are in lists or in commands like your example)
Thanks for the quick reply.
Comments have been locked on this page!