AS3GIF lets you play and encode animated GIF's with ActionScript 3 Since web pages can usually natively play GIFs fine, it's only a port of the GIFEncoder portions of the library. But there are some ...
Since web pages can usually natively play GIFs fine, it's only a port of the GIFEncoder portions of the library. But there are some differences so I'll cover it here anyway. You first need to include ...
2023年3月の世界のWebブラウザのシェアは、statcounterによれば、Google Chromeが65%、Apple Safariが20%、Microsoft Edgeが5%、Mozilla Firefoxが3%となっています。これら主要なWebブラウザには約10年以上前から「Canvas API」と呼ばれる高度な描画機能が利用できます。 このCanvas ...
HTMLの <canvas> 要素でグラフィックスを扱うには、まず「レンダリングコンテキスト」の取得が必要です。本記事では、Canvas APIの入り口となるコンテキストの初期化から、最も基本的な図形である矩形(長方形)の描画、そして色指定の方法までを解説します。
Canvas APIの真骨頂は、描画された内容を画像としてだけでなく、数値データ(ピクセル)として直接操作できる点にあります。getImageData を使用すれば、ブラウザ上でPhotoshopのような画像フィルター処理や解析が可能になります。 実務で即座に使える、ネガ ...