Leaderboard


Popular Content

Showing content with the highest reputation on 01/25/21 in all areas

  1. 1 point
    I did this with what I learned. Hope it helps
  2. 1 point
    ZackMercury

    Changing texture size

    Wait, what? PIXI Matrix is not immutable? Ah, my bad. g.lineTextureStyle({width:40 , texture:texture , alignment:0, matrix: PIXI.Matrix.IDENTITY.clone().scale(the scale you need)});
  3. 1 point
    ZackMercury

    Changing texture size

    I think he meant this: g.lineTextureStyle({width:40 , texture:texture , alignment:0, matrix: PIXI.Matrix.IDENTITY.scale(the scale you need)}); And you can calculate the scale like this: scaleX = rectWidth / TEXTURE_SIZE scaleY = rectHeight / TEXTURE_SIZE
  4. 1 point
    ivan.popelyshev

    Changing texture size

    pass the matrix in method , with a scale