Skip to content

wonkooklee/pixel-manipulation-with-canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Manipulation with Canvas API

With the ImageData object we can directly read and write a data array to manipulate pixel data.

MEDIUM: Canvas API와 Broadcast Channel API를 이용한 자필 서명 이미지 생성 모듈 구현기 - Part.1 (Korean)

Instructions

Install dependencies.

$ npm install
$ npm i

Start live-server with following script.

$ npm start

The script above will compile .ts to .js and run the live-server on localhost on port 4000.

You can change serving port within server.js configurations.

const params = {
  port: 4000, // <- here
  host: "0.0.0.0",
  open: true,
  root: "src",
};

Features to demonstrate

Parsing Pixels

Screen Shot 2023-04-11 at 11 39 33 PM-min

Cropping Image

Screen Shot 2023-04-11 at 11 40 19 PM-min

Thanks!

© Wonkook Lee

About

With the ImageData object we can directly read and write a data array to manipulate pixel data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors