gt6796c / rocklib Goto Github PK
View Code? Open in Web Editor NEWUtility functions for gt6796c TiddlyWiki plugins
License: Other
Utility functions for gt6796c TiddlyWiki plugins
License: Other
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.