• Stars
    star
    555
  • Rank 80,213 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

simple javascript ui


UIL v4.3.0

uil.js is a lightweight ui for javascript with a complete 3d display support.
totally customizable, only 6 events, auto resize
MAIN EXAMPLE

1 - init engine

var ui = new UIL.Gui( { w:300 } )

2 - add value

ui.add('title', { name:'Title'})
ui.add('bool', { name:'Bool' })
ui.add('color', { name:'Color', type:'rgba', value:[0,1,1,1]})
ui.add('slide', { name:'Slide', value:50})
let myList = ui.add('list', { name:'List', list:['i1', 'i2', ...]})

3 - add value with object reference

const obj = {
  name:'welcome to uil',
  value: 2,
  slider: 30,
  vector: { x:10, y:-30 }
}

ui.add( obj, 'string', { type:'string' })
ui.add( obj, 'value', { type:'number', min:0, max:10, precision:2, step:0.01 })
ui.add( obj, 'slider', { type:'slide' })
ui.add( obj, 'vector', { type:'number' })

4 - callback return the value

ui.add('number', { name:'Vector4', value:[0,0,0,0] }).onChange( function(v){ debug.innerHTML = v; } )

5 - you can reset all value

ui.clear();

6 - other examples

uil module

uil listen

uil color

uil stresstest

uil group

uil to canvas

uil to three

uil to three 2

7 - uil is on npm

npm i uil

More Repositories

1

Oimo.js

Lightweight 3d physics engine for javascript
JavaScript
3,054
star
2

3d.city

3d city builder game
JavaScript
1,544
star
3

phy

Physics for three. Game engine
JavaScript
509
star
4

fullik

javascript fast iterative solver for Inverse Kinematics
JavaScript
356
star
5

neo

Ultimate timeline
JavaScript
282
star
6

Ammo.lab

Ammo.lab advanced 3d physics worker for three.js
JavaScript
266
star
7

Avatar.lab

Human avatar and animation for three.js
JavaScript
189
star
8

Shader.lab

Advanced shader for three.js
GLSL
107
star
9

Dedal.lab

advanced pathfinding
JavaScript
80
star
10

Liquid.lab

LiquidFun advanced 2d physics stuff
JavaScript
79
star
11

root

source factory & demo labs
JavaScript
72
star
12

Crowd.lab

Lightweight crowd simulation engine
JavaScript
66
star
13

olympe

sea3d exemple for three js
JavaScript
58
star
14

Turbulence

Universal mechanical linkage for representing the voluntary movements of nature animals
JavaScript
35
star
15

lab

main source for all my repro in .lab, with three.js, codemirror, and other...
JavaScript
25
star
16

Character-sea3d

Advanced Character tutorial with sea3d and three.js
JavaScript
19
star
17

Energy.lab

3d physics for three.js
JavaScript
17
star
18

terra

noise explorer
JavaScript
15
star
19

pi

game test html 5
JavaScript
13
star
20

sed

webgl nodes seriously effects editor
JavaScript
13
star
21

labs

personal portfolio - three advanced experiments
JavaScript
12
star
22

loth

sea3d three.js/away3d labs
ActionScript
11
star
23

hex

simplified lzma compactor for js script or all txt files
JavaScript
10
star
24

three.lab

extend test for three js
JavaScript
10
star
25

RAPT

and other game test
JavaScript
9
star
26

loth_labs

away3d experiment with AWD
ActionScript
6
star
27

crossed

minimal game test on all navigator
JavaScript
6
star
28

RadioWeb

webgl streaming shoutcast
JavaScript
2
star