1.1.0 • Published 2 years ago

256art v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

256ART

Gives generative artists easy access to data in 256ART pieces in a NodeJS environment.

npm install --save 256art
const TwoFiveSix = require("256art");

Examples

Get metadata for one piece

let json = TwoFiveSix.getJsonFromId(1);

Get metadata in base64 format for one piece

let base64 = TwoFiveSix.getBase64JsonFromId(1);

Get all block colors as seeds by converting hex to decimal value from each color in a piece

let seedsFromColors = TwoFiveSix.getDecimalFromHexForAllColorsForId(1);

Get all block colors for one piece (hex)

let blockColors = TwoFiveSix.getBlockColorsForId(1);

Get background color for one piece (hex)

let bgColor = TwoFiveSix.getBackgroundColorForId(1);

Get border color for one piece (hex)

let borderColor = TwoFiveSix.getBorderColorForId(1);

Get total amount of blocks for one piece

let totalBlocks = TwoFiveSix.getTotalBlocksForId(1);
1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago