Giter VIP home page Giter VIP logo

rocklib's Introduction

title: $:/plugins/gt6796c/rocklib/readme


This plugin packages [[rocklib|https://github.com/gt6796c/rocklib]] for use by other plugins. It does not provide any end-user visible features.

No user-visible elements.

provides the following functions:

;getScriptBody(src, att)
: attempts to pull the text out of ``src`` element's body or the specified attribute ``att``

;getOptions(src,tag,options)
: in the case of a widget, adds all of ``src`` element's attributes into the ``options`` object
: in the case of a Tiddler, adds all of the fields that begin with ``tag`` into the ``options`` object (minus the ``tag-`` prefix)
: All options are first treated as Data Tiddler Names, then JSON, and finally as plain text

;getCanvas(src,tag,type)
: creates a uniquely-named "canvas" which may be of type ``type``. Supported types are ``div`` and ``canvas``
: The height and width attributes from the ``src`` element will be applied to the canvas

;nextColor(s,v)
: returns a random-ish color string from the same palette as specified byt the ``s`` saturation and ``h`` hue.
: The color is in the form of ``#rrggbb``

;rgb_to_hsv(r,g,b)
: returns array of [hue, saturation, value]
: r can be array of [r,g,b] or individual parameters can be used

;hsv_to_rgb(h,s,v)
: returns array of [red, green, blue]
: h can be array of [h,s,v] or individual parameters can be used

rocklib's People

Contributors

gt6796c avatar

Stargazers

zhangaz1 avatar Jean-Bernard FRANCOIS avatar

Watchers

 avatar

Forkers

jceb zhangaz1

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.