https://github.com/trac-hacks/traccolormacros
A Trac Macro (Wiki) plugin for displaying color schemes.
https://github.com/trac-hacks/traccolormacros
trac-plugin
Last synced: 11 months ago
JSON representation
A Trac Macro (Wiki) plugin for displaying color schemes.
- Host: GitHub
- URL: https://github.com/trac-hacks/traccolormacros
- Owner: trac-hacks
- Created: 2011-03-07T07:00:26.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-03-09T16:58:51.000Z (over 15 years ago)
- Last Synced: 2025-03-27T10:34:45.440Z (about 1 year ago)
- Topics: trac-plugin
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
INTRODUCTION
I started designing a new project not-so-long-ago and wanted to store some
design color schemes on my trac wiki. It might seem useless to create a plugin
for this, since I could just as well used html blocks for it, but it was good
practice on how to start Trac plugin development.
DEPENDENCIES
This macro depends on Advanced Argument Parser for WikiMacros
http://trac-hacks.org/wiki/AdvParseArgsPlugin
COLORSCHEME
A quick way to add some ‘color schemes’ to your wiki pages.
[[ColorScheme(#00ff00, #ff0000, #0000ff)]]
or with comments:
{{{#!ColorScheme
#00ff00 green
rgb(255\,0\,0) red
"rgb(255, 255, 0)" Your title / description
#00f
}}}
COLORGRADIENT
Basic:
[[ColorGradient(#00ff00, #ff0000, #0000ff)]]
same with a title:
{{{#!ColorGradient title="Your title / description"
#00ff00
rgb(255\,0\,0)
"rgb(255, 255, 0)"
#00f
}}}