Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
画面の左下から右上に対角線があります。その対角線に2メートル間隔でキャンバスに描かれた人間の画像もあります。キャンバスの下にJSliderを作成しました。スライダーを左に調整するときはいつでも、画像をズームアウトしたいのですが、右にある場合は画像がズームインします。これが私の問題です。
方法を教えていただけますか?
If you want to zoom in use
context.scale(scaleFactor,scaleFactor)
To zoom in use a number bigger then 1 and to zoom out use a number less then 1 like 0.6