Skip to content

JothaM123/binpix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BinPix the minimalistic JS graphics library.

BinPix https://giant-gabby-macaroon.glitch.me/binpix.js

Sample code

//pix function draws the graphics
// "art" is a <div> tag

pix("art",
`0 0 0 0 0 0 0<br>
0 0 1 0 1 0 0<br>
0 0 0 0 0 0 0<br>
0 1 0 0 0 1 0<br>
0 0 1 1 1 0 0<br>
`, "gainsboro", "black","300px","300px")
            
// use 1s for blocks and 0 for spaces and use the <br> tag for new lines     
// parameters: element id , art, theme, color, width, height

demo page - https://binpix-demo.glitch.me