flambe icon indicating copy to clipboard operation
flambe copied to clipboard

drawPattern issues

Open markknol opened this issue 9 years ago • 0 comments

See http://projects.stroep.nl/flambe-patternsprite-issue/ (source project included) or check out source of main class here https://gist.github.com/markknol/9aaaa5e88287fd308cf8

I have a custom pattern sprite where you can define the offset of the pattern using a left/top animatedFloat value.

 g.drawPattern(texture, left._ % width._, top._ % height._, width._, height._);

What I see

  • Canvas seems to wipe the content like a mask
  • WebGL seems to move the content
  • Flash seems to act as the WebGL version
  • I don't see any repetition/pattern

The problems

  • The rendering differs per target
  • Both does not seem to repeat when the destX or destY change.

Probably related to #118

I see this behavior in Chrome and Firefox

markknol avatar Mar 30 '15 10:03 markknol