C4Labs / C4iOS

C4 is an open-source creative coding framework that harnesses the power of native iOS programming with a simplified API that gets you working with media right away. Build artworks, design interfaces and explore new possibilities working with media and interaction.
www.c4ios.com
MIT License
981 stars 75 forks source link

Changing center of Line causes x value to decrease #659

Closed Ollstar closed 8 years ago

Ollstar commented 8 years ago

Creates line:

let endPoints = [Point(), Point(self.canvas.width, 0)]

//create the line and center it
line = Line(endPoints)
line.center.y = self.canvas.center.y

The line should start from left side of screen and end on the right side. When changing center the line appears to move to the left screen shot 2016-04-26 at 2 20 54 pm