Skip to content
/ Voxel Public
forked from oranj/Voxel

JavaScript voxel generating tools

Notifications You must be signed in to change notification settings

jonkoi/Voxel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voxels

They are your friend.

We have shapes and renderers.

Example.

require.config({
	baseUrl: '/js/app/',
	paths: {
		vox: '/js/vox-lib/src'
	}
});

require(
	['vox/Renderer/CanvasRenderer', 'vox/Shape/Bezier'],
	function(CanvasRenderer, Bezier) {

		var canvasElement = document.getElementById('renderCanvas');

		var shape = new Bezier(40, 40, 100, 1.5,
				[0, 0.35, .69, 1],
				[0, 0.97, 0.09, 1],
				'x'
			),

			renderer = new CanvasRenderer(
				canvasElement, 12,
				'#1E527D',
				'#6795BA',
				'#26679c'
			);
			results = shape.generate3d();

		renderer.render(results);

	}
);

About

JavaScript voxel generating tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%