Skip to content

Canvas and drawing #11

Description

@jair-pereira

@rithgroove

Could you explain a bit how is the logic behind the drawing on the canvas?
I ask because I want to (1) remove some boilerplaite code
e.g.:

x = (node.coordinate.lon - self.canvasOrigin[0]) * self.scale + self.viewPort[0]
y = (self.canvasSize[1]-( node.coordinate.lat - self.canvasOrigin[1])) * self.scale + self.viewPort[1]

(2) add something similar to a camera, where we apply all transformations to the camera instead of applying to every object that we draw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions