GithubHelp home page GithubHelp logo

tezzutezzu / inlet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enjalot/inlet

0.0 0.0 0.0 1.12 MB

Bret Victor inspired slider & color picker plugin for CodeMirror

Home Page: http://enjalot.github.com/Inlet

License: Other

Makefile 0.05% JavaScript 65.99% HTML 30.17% CSS 2.83% CoffeeScript 0.96%

inlet's Introduction

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"

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

The Color Picker Thistle is used to provide the color picker, and Color.Space.js translates between color spaces.

This project is used in enjalot's Tributary

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:

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

Development

Install

npm Install
make

Test cases are availible in test.html

Enjoy!

inlet's People

Contributors

enjalot avatar georules avatar ejfox avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.