After finding that it was taking me a lot longer than it should of been just to change the position of one of my triangles or try to increase the size etc I realized that I had written my code using variable but in a way that meant I was still having to plot in all the individual numbers for each line of each triangle rather than having a few variables that control everything.
To fix this, i re-wrote (with help) a new code that uses the center point of the canvas as the center point for all the movement and sizing of shapes which makes it a lot easier to manipulate the variables which opens up a whole new range of sequences that a quick to create.
The only issue with the new code over my old one is that I am at a stage where I can only more the shapes in a symmetrical way (i.e cannot rotate the angle), this means that I can use my old code for any sequences I want to try that don't use symmetry and use the new quicker code for the rest of my form developments.
This is something i need to improve on working with in the future.
No comments:
Post a Comment