Centering a rectangle

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Purple Fedora
Posts: 20
Joined: Fri Oct 26, 2018 8:41 pm

Centering a rectangle

Post by Purple Fedora » Thu Nov 22, 2018 1:59 pm

Code: Select all

	canvas =, values.height, {type="2d"}, {format="normal"}, 1), blue.g, blue.b, blue.a)"fill", 0, 0, values.width, values.width), red.g, red.b, red.a)"fill", 0, values.width, values.width, values.width), 0, 0, 0.3)"line", values.edge / 2, values.edge / 2, values.width - values.edge, values.height - values.edge)
Why does the darker rectangle look on this canvas so out of the center, did i mess up the code or is it an optical illusion?
Unbenannt.PNG (942 Bytes) Viewed 737 times

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 33 guests