The Mesh model was generated in blender from original svg logo by Dmytro Kovkun. Change it to get different logos.
npm install -S @zero-plus-x/logo
import { Logo, Controls } from '@zero-plus-x/logo';
// render logo to a given DOM-element
const logoContainer = document.getElementById('logo-container');
const options = {}; // see `options` section below
const logo = new Logo(logoContainer, options);
// (optional) render controls to tweak how logo should look
const controlsContainer = document.getElementById('controls-container');
const controls = new Controls(controlsContainer, logo);
// destroy logo if it's not needed anymore
logo.destroy();
-
default:
attribute float a_Size; attribute float a_Alpha; varying float v_Alpha; void main() { v_Alpha = a_Alpha; vec4 mvPosition = modelViewMatrix * vec4(position, 1.0); gl_PointSize = a_Size; gl_Position = projectionMatrix * mvPosition; }
-
default:
uniform sampler2D u_Texture; varying float v_Alpha; void main() { vec4 color = vec4(1.0, 1.0, 1.0, v_Alpha) * texture2D(u_Texture, vec2(1.0, 1.0) - gl_PointCoord); gl_FragColor = color; }
- default: 50
- default: 10
- default: 1
- default: 6
- default: 0.2
- default: 1
- default: 10
- default: 30
- default: 0.03
- default: 0.08
- default: 0
- default: 1
- default: 1000
- default: 50
- default: 1
- default: 8
- default: 0.1
- default: 0.9
- default: 0.001
- default: 0.005
- default: 180
- default: 300
Install dependencies:
npm install
Start dev-server (at http://localhost:3333):
npm start
Production build:
npm run build
Build a standalone page with this module:
npm run buildGlobal
Run linters (ESLint + Stylelint):
npm test