thekayaker33

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. I was originally using masks, but then I saw trim and thought it might be easier to use. It seems like I need to just go back to masks since modifying the pixi src isn’t something I’m familiar with
  2. Hi, I am trying to get a trim of a texture. HOwever, i want an angled rectangular portion of the texture. The PIXI.Rectangle class does not have an param for angle. It assumes angle = 0; So how would i get it, if i want angle = 60 degrees? So far this is what i have var yo = PIXI.Texture.from('characterekfwj.png', options); var frame = new PIXI.Rectangle(yo.frame.x, yo.frame.y, yo.frame.width, yo.frame.height); var crop = new PIXI.Rectangle(yo.frame.x, yo.frame.y, yo.frame.width, yo.frame.height); var trim = new PIXI.Rectangle(yo.frame.x, yo.frame.y, yo.frame.width, yo.frame.height); var ztexture = new PIXI.Texture(yo.baseTexture, frame, crop, trim);