All Projects → mokargas → aframe-colorwheel-component

mokargas / aframe-colorwheel-component

Licence: MIT license
A-Frame Colorwheel. Based on A-Painter and A-Frame Material 🎨🅰

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to aframe-colorwheel-component

Flexcolorpicker
Modern color picker library written in Swift 5 that can be easily extended and customized. It aims to provide great UX and performance with stable, quality code.
Stars: ✭ 164 (+925%)
Mutual labels:  color-picker, color-palette, ui-components
Vue Swatches
🎨 Help the user picking beautiful colors!
Stars: ✭ 456 (+2750%)
Mutual labels:  color-picker, color-palette, ui-components
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+1593.75%)
Mutual labels:  color-picker, color-palette, ui-components
react-native-color-panel
React Native Color Panel Component for iOS and Android 🏳️‍🌈
Stars: ✭ 21 (+31.25%)
Mutual labels:  color-picker, color-palette
Colorpicker
Simple, maintained and highly customizable colorpicker library for Android.
Stars: ✭ 31 (+93.75%)
Mutual labels:  color-picker, color-palette
react-native-image-color-picker
Image color picker based on image source provided and return image different color palettes or average color palette
Stars: ✭ 25 (+56.25%)
Mutual labels:  color-picker, color-palette
reinvented-color-wheel
A vanilla-js touch-friendly HSV color picker inspired by Farbtastic Color Picker.
Stars: ✭ 43 (+168.75%)
Mutual labels:  color-picker, color-wheel
SwiftColorWheel
Delightful color picker wheel for iOS in Swift.
Stars: ✭ 37 (+131.25%)
Mutual labels:  color-picker, color-palette
epick
Color picker for creating harmonic color palettes that works on Linux, Windows, macOS and web.
Stars: ✭ 89 (+456.25%)
Mutual labels:  color-picker, color-palette
tcolors
Commandline color picker and palette builder
Stars: ✭ 44 (+175%)
Mutual labels:  color-picker, color-palette
ColorPicker
Powerful screen ColorPicker/Chooser application for Linux Desktop
Stars: ✭ 55 (+243.75%)
Mutual labels:  color-picker, color-palette
pantone-colors
Hex values of all 2310 Pantone colors
Stars: ✭ 147 (+818.75%)
Mutual labels:  color-picker, color-palette
lvr
👓 Augmented Reality for everyone - Out of the world experiences
Stars: ✭ 92 (+475%)
Mutual labels:  a-frame, webvr
StarshipAcademy
a Multiplayer WebVR Space Shooter made with A-Frame and Socket.io
Stars: ✭ 24 (+50%)
Mutual labels:  a-frame, webvr
javascript-color-gradient
Lightweight JavaScript library, used to generate an array of color gradients, between start and finish colors.
Stars: ✭ 54 (+237.5%)
Mutual labels:  color-picker, color-palette
Md Color Picker
Angular-Material based color picker
Stars: ✭ 253 (+1481.25%)
Mutual labels:  color-picker, color-palette
vscode-color
Helper with GUI to generate color codes such as CSS color notations.
Stars: ✭ 88 (+450%)
Mutual labels:  color-picker, color-palette
DepthKit-A-Frame
🎥 An A-Frame component for rendering DepthKit volumetric videos in WebVR
Stars: ✭ 34 (+112.5%)
Mutual labels:  a-frame, webvr
React Native Color Wheel
🌈 A react native reusable and color picker wheel
Stars: ✭ 137 (+756.25%)
Mutual labels:  color-picker, color-palette
Colorbook
🎨 Color schemes for UI design - Optimized for foreground, background, border, etc. https://liyasthomas.github.io/colorbook
Stars: ✭ 148 (+825%)
Mutual labels:  color-picker, color-palette

aframe-colorwheel-component

Version License

A-Frame Color Wheel component, designed to be used with A-Frame Material

NOTE: A-Frame Material is not required to use this component

For A-Frame.

Example of Colorwheel

Examples

API

Property Description Default Value
disabled Wether the color wheel responds to clicks or taps false
backgroundcolor Background color of the UI #fff
wheelSize Size (m) if the color wheel element. Note: This will determine the UI size automatically and assumes a a square element 0.4 (40cm)
showSelection Show the color-selected circle (top left corner of UI) true
selectionSize Size (m) of the selection circle, if enabled 0.10 (10cm)
showHexValue Show the color as a hex value (Note: currently output only). If enabled, you can click on the value to copy the contents to your clipboard on selected devices only false
showSwatches Show a collection of swatch colors, specified by the swatches property false
swatches If showSwatches is set to true, the following colors will be available ['#000000', '#FFFFFF', '#ff0000', '#2aa8dc', '#ffed00', '#4c881d', '#b14bff']

Installation

Browser

  • Install and use by directly including the browser files:
  • Create a listener component to listen for changes
<head>
  <title>My Cool A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-colorwheel-component/dist/aframe-colorwheel-component.min.js"></script>
  <script type="text/javascript">
     //Example of using the color wheel with events
     AFRAME.registerComponent('color-listener', {
       init: function(){
         const el = this.el;
         document.body.addEventListener('didchangecolor', function(evt){

            //Available return formats from colorwheel
            let style = evt.detail.style
            let rgb = evt.detail.rgb
            let hsv = evt.detail.hsv
            let hex = evt.detail.hex

            el.setAttribute('color', hex)
         })
       }
     })
  </script>
</head>

<body>
  <a-scene>
    <a-entity colorwheel></a-entity>
    <a-sky color="#6EBAA7" color-listener></a-sky>
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-colorwheel-component

Then require and use.

require('aframe');
require('aframe-colorwheel-component');

TODO / Roadmap

  • Enable setting swatch colors
  • Deeper customisation (padding, background colors, shader style)
  • Interop testing
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].