This example demonstrates how Unicolour can be used in Unity for 3D visualisation of colour spaces.
☢️ This is the first time I've made anything in Unity and is unlikely to follow best practices!
- It is mostly a default Unity scene
- Colours and positions of spheres are calculated using Unicolour
- Unicolour is referenced as an external DLL by placing
Wacton.Unicolour.dll
intoAssets/Plugins
- Unicolour is used as normal in
Assets/Scripts/ColourController.cs
- Confirmed to work when built for Windows and WebGL
- Left Mouse · next colour space
- Right Mouse · previous colour space
- Tab · toggle movement on/off
- Mouse · look
- WASD · move forward, backward, left, right
- SpaceCtrl · move up, down
- Shift · hold to move faster
- QE · roll left, right
- Esc · quit