Jump to content

RHCode

Members
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About RHCode

  • Rank
    Newbie
  1. Stop effects of translate() function

    Thanks so much!
  2. In javascript, there is a translate(x,y); function. If I wanted to have a rect translated, but another rect below it not, how could I do that. In processing, they have a resetMatrix(); function. For example: ctx.translate(100,100); // Translate function ctx.fillRect(0,0,100,100); // Apply translate effects onto this (translate the rect to 100,100) //Don't want to translate this ctx.fillRect(100,100,50,50); // want it to stay at (100,100), not be translated to (200,200)
×