I have been programming lately and I noticed what I consider to be errors as I will discuss. First, let me insert an image which illustrates the error: and here is the lua logic file:
Code: Select all
PaneCanvas = canvas_add(0, 0, 200, 100)
BoxCanvas = canvas_add(15, 15, 150, 40)
--
canvas_draw(PaneCanvas, function()
_rect(1, 1, 198, 98)
_stroke("#FFD700", 2)
--
_move_to(25, 60)
_line_to(150, 60)
_stroke("#FFD700", 1)
--
_move_to(100, 50)
_line_to(100, 90)
_stroke("#FF0084", 1)
--
end)
--
canvas_draw(BoxCanvas, function()
_rect(2, 2, 148, 23)
_stroke("#008000", 1)
--
_move_to(10, 10)
_line_to(125, 10)
_stroke("#9932CC", 1)
--
end)
--
1. The 4 colors inside the Gold panel are washed out. All are associated with lines that are supposed to be 1 pixel in width.
2. 3 sides of the green box (Top, Left, & bottom) are 2 pixels in width, the right side (pardon the pun) is correctly 1 pixel in width.
3. The 3 long lines (Purple, Gold, & Red) are all 2 pixels in width and not 1 as specified in the stroke commands.
These are commands that I have used successfully in the past so there has been a recent change. Please note that the lua code in the code box above is all the code in the instrument folder.
Thank you for your help and I look forward to learning the outcome.
Sparky