An open API service indexing awesome lists of open source software.

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.

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
}}}