Catalog npm
Back to packageRELEASE DETAILS

1.0.5

npm

256art

A package for artists to easily build on top of 256ART

256art
Published30 Oct 2021
Direct dependencies2
Transitive dependenciesNot calculated

README

Current package documentation

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);

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
fs
Environment
{
  "local_name": "fs",
  "alias": false,
  "peer_metadata": null
}
^0.0.1-securityruntime
path
Environment
{
  "local_name": "path",
  "alias": false,
  "peer_metadata": null
}
^0.12.7runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-t0oI9uZe5pNVSQ7gkMaMWF7yJsDm6G3CYFWrzNzCw1hqabhjxuAqT+oRUVs9jbF9CU6j5GofrvrEz5R8jOtgJQ==",
  "shasum": "1e32c5de8d8e3956258298e182e531e502ac2e45",
  "tarball": "https://registry.npmjs.org/256art/-/256art-1.0.5.tgz",
  "fileCount": 4100,
  "unpackedSize": 13859612,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDXFB8Kgzl/ZvuFQ0iXN6wo01yzAytQCe7entqqmAznXAIgaWH2RjOOub6whEZQ69ZzQvF7ppFcU3Vg5PI/ev7PEXk="
    }
  ]
}

Repository

PENDING
martibis/node256art

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:04 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:f67c2008a3e606fa7c375ea956d09fb12850fc328dde3d12778f23dbd38ce665

Other collected versions

1.1.03 Apr1.0.910 Jan1.0.828 Dec1.0.76 Dec1.0.430 Oct1.0.329 OctView all collected versions →