Concerning the vector path stuff, please post the code that doesn't work as text because I can't be bothered to type text from screenshots. I need to be able to copy & paste

Hmmm, i can't reproduce problem with drawing single straight line, it works. Really weird, until you've asked for code, it didn't. I remember i had similar issue with other things,airsoftsoftwair wrote: Concerning the vector path stuff, please post the code that doesn't work as text because I can't be bothered to type text from screenshots. I need to be able to copy & paste
Code: Select all
StartPath(1)
MoveTo(1, 0, 0)
LineTo(1, 100, 100)
LineTo(1, -100, 100)
LineTo(1, -100, -100)
LineTo(1, 100, -100)
DrawPath(1, 250, 250, #RED)
ClosePath(1)
PathToBrush(1, {ID=1, COLOR=#YELLOW})
Code: Select all
PathToBrush(1, {{ID=1, COLOR=#YELLOW}})
OMG... Because there is only one path i assumed, that only one pair of brackets is required but i was wrong...airsoftsoftwair wrote:PathToBrush() can convert multiple paths to a brush so you need to provide a table of tables. Like this:
There's also an example in the docCode: Select all
PathToBrush(1, {{ID=1, COLOR=#YELLOW}})
Code: Select all
EnableLayers()
;SetFillStyle(#FILLNONE,1)
SetFillStyle(#FILLCOLOR)
SetFormStyle(#ANTIALIAS)
StartPath(1)
MoveTo(1, 0, 0)
LineTo(1, -100, -100)
DrawPath(1, 250, 250, #RED)
ClosePath(1)