🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

voxel-painter-core

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

voxel-painter-core

Voxel Painter Core

latest
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

Voxel Painter Core

Work In Progress

Extracted from Voxel Painter by Max Ogden. The goal is to make it a base module decoupled from any DOM so it can be used anywhere, and in the future add a way to create add-ons to extend or add some features.

NPM

Installation

Install with npm

npm install voxel-painter-core --save

Basic Usage

Use Browserify to bundle your code:

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <style>
        #voxel-painter {
            height: 1000px;
        }
    </style>
</head>
<body>
    <div id="voxel-painter"></div>
    <script src="bundle.js"></script>
</body>
</html>
var voxelPainter = require('voxel-painter-core')

// Options
var options = {
    container: '#voxel-painter'
}

var painter = voxelPainter(options)

For a working example check out the example directory.

Methods

Set color

Set the color of the painter

painter.setColor('#F15501')

To get the currently used color: painter.color()

Show / hide grid

painter.showGrid(boolean)

Set wireframe

painter.setWireframe(boolean)

License

BSD

FAQs

Package last updated on 28 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts