Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rrd.php: added helper 'colbright' to adjust color brightness #115

Merged
merged 1 commit into from Oct 13, 2015

Conversation

simonmeggle
Copy link
Contributor

Inspired by Stackoverflow.

Graphs look pretty nice if AREA is repainted with a darker LINE1.
To define a brighter color than the one in $color_runtime_line, just write

$color_runtime_area = rrd::colbright($color_runtime_line,35);

Negative numbers will darken the color:

$color_runtime_line = rrd::colbright($color_runtime_area,-35);

lingej added a commit that referenced this pull request Oct 13, 2015
rrd.php: added helper 'colbright' to adjust color brightness
@lingej lingej merged commit fdbc48b into lingej:master Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants