Are there libraries that provide limited functionality for primitive shapes? I tried to wet the EaselJS feet , and although it has some amazing properties, the basic shapes are not one of them. Tests inside the figure are performed using pixel testing, which is incredibly slow compared to, for example, beam testing.
I think that the rectangle and the circle are used the most, and I can create collision detection for two of them, but it’s more complicated with polygons. Are there libraries for this? I know that jQuery has one, but it looks like this is for HTML elements, not canvas
source
share