Week 5/6


I ended up sticking with my original plan using the same isOverlapping function. Dr. McVey found out that the text alignments and the getImageData alignments were different.

Before using ctx.textBaseline = “top”; “getImageData” was only reading the data from inside the box which was below the word itself (image 1). after implementing ctx.textBaseline = “top”; getImageData was correctly reading the data from the word itself (image 2)

The isOverlapping function is now working. My next step will be to fix the problem I am having with words going past the canvas. Once I have solved that problem I will begin working on getting the words placed properly when rotated. I think I will have some problems again with isOverlapping not rotating the box.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

css.php