Skip to content
forked from enjalot/Inlet

Inline color picker and numeric slider plugin for CodeMirror

License

Notifications You must be signed in to change notification settings

michaelsboost/Inlet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inlet

Inlet is a "plugin" for CodeMirror2+ which pops up an inline color picker and numeric slider whenever you click on a number, a Hex String (ex. "#0004ff"), RGB String (ex. "rgb(0, 4, 255)"), or HSL String (ex. "hsla(239, 100%, 50%, 1)").

See an example at http://michaelsboost.github.io/Inlet

About

This project is inspired by Bret Victor's talk "Inventing on Principle"

The the slider code is originally adapted from Gabriel Florit's Water project the predecesor for Livecoding.io

The JQuery MiniColors is used to provide the color picker and TinyColor translates between color spaces.

License

MIT

Usage

Check out index.html to see how to put things together

The key bit of javascript code to kick things off is:

var editor = CodeMirror('#editor', ...)
Inlet(editor)

Enjoy!

You can show your appreciation by Donating via SquareCash and/or PayPal

About

Inline color picker and numeric slider plugin for CodeMirror

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 78.4%
  • CSS 20.6%
  • HTML 1.0%