开发者

Canvas: JavaScript Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1 [closed]

开发者 https://www.devze.com 2022-12-22 18:14 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so开发者_C百科 that it can be reopened, visit the help center. Closed 9 years ago.

The site is: http://www.clubloc.com/

And it works in firefox but not in google chrome. Internet explorer also has problems but thats pretty much a given when using HTML5 Canvas.

Anyways I'm trying to figure out why it throws the error: Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1

When the arrays clearly have all those elements, I even logged their size and it says 100.

Any help/guidance would be greatly appreciated.


Zneak has the answer right, I just fixed it.

I wasn't doing the radial boundary testing early enough... Canvas doesn't like it if you have a negative radius :-).

Thanks zneak!

0

精彩评论

暂无评论...
验证码 换一张
取 消