# Inlet **Repository Path**: mirrors_tangrams/Inlet ## Basic Information - **Project Name**: Inlet - **Description**: Bret Victor inspired slider & color picker plugin for CodeMirror - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Inlet Inlet is a "plugin" for CodeMirror2 which pops up a slider whenever you click on a number or a color picker when you click on a Hex string (i.e. "#ff0000"). You can also click on hsl strings (i.e. "hsl(100,100%,90%") to get the color picker. See an example at http://enjalot.github.com/Inlet # About This project is inspired by Bret Victor's talk ["Inventing on Principle"](https://vimeo.com/36579366) The the slider code is originally adapted from Gabriel Florit's [Water project](http://gabrielflor.it/water) the predecesor for [Livecoding.io](http://livecoding.io) The [Color Picker Thistle](https://github.com/nornagon/thistle/) is used to provide the color picker, and [Color.Space.js](https://github.com/mudcube/Color.Space.js) translates between color spaces. This project is used in enjalot's [Tributary](http://tributary.io) # Usage All you need is the inlet.js file from src/inlet.js but you do need to make sure you have all of the libs this depends on (found in the example/lib folder): ColorPicker CodeMirror2 ( >= 3.1 ) Check out index.html to see how to put things together The key bit of javascript code to kick things off is: ```javascript var editor = CodeMirror('#editor', ...) Inlet(editor) ``` # Development Install ``` npm Install make ``` Test cases are availible in test.html Enjoy!