git ssb

1+

cel / pngspark



Commit a173b5bb973163057882542a5e621ed8007f37d4

Rename files

Charles Lehner committed on 2/10/2015, 4:46:02 PM
Parent: 1fe01596a886b6ef6fe6d2b10c5b11a6e40a23ba

Files changed

Licensedeleted
LICENSEadded
Readme.mddeleted
README.mdadded
LicenseView
@@ -1,20 +1,0 @@
1-The MIT License (MIT)
2-Copyright © 2015 Charles Lehner
3-
4-Permission is hereby granted, free of charge, to any person obtaining a copy
5-of this software and associated documentation files (the “Software”), to deal
6-in the Software without restriction, including without limitation the rights
7-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8-copies of the Software, and to permit persons to whom the Software is
9-furnished to do so, subject to the following conditions:
10-
11-The above copyright notice and this permission notice shall be included in
12-all copies or substantial portions of the Software.
13-
14-THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20-THE SOFTWARE.
LICENSEView
@@ -1,0 +1,20 @@
1 +The MIT License (MIT)
2 +Copyright © 2015 Charles Lehner
3 +
4 +Permission is hereby granted, free of charge, to any person obtaining a copy
5 +of this software and associated documentation files (the “Software”), to deal
6 +in the Software without restriction, including without limitation the rights
7 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 +copies of the Software, and to permit persons to whom the Software is
9 +furnished to do so, subject to the following conditions:
10 +
11 +The above copyright notice and this permission notice shall be included in
12 +all copies or substantial portions of the Software.
13 +
14 +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 +THE SOFTWARE.
Readme.mdView
@@ -1,50 +1,0 @@
1-# pngspark
2-### [Sparklines](https://github.com/holman/spark) as PNGs
3-
4-## Install
5-```
6-make
7-[sudo] make install [PREFIX=/usr/local]
8-```
9-
10-## Usage
11-```
12-pngspark [-h height] [-c color] [-s scaling] output.png
13-```
14-
15-### Options
16-* `-h height`: the height of the image in pixels
17-* `-c color`: the color of the foreground, as #rrggbb hex
18-* `-s scaling`: scaling factor. 0 to do no scaling, 1 to make the minimum
19- value be at the bottom of the image
20-
21-## API
22-
23-```c
24-struct pngspark;
25-```
26-A png spark instance: collection of values and settings.
27-
28-```c
29-int pngspark_init(struct pngspark *ps, size_t height, const char *color, double scaling);
30-```
31-Initialize a pngspark struct.
32-
33-```c
34-int pngspark_append(struct pngspark *ps, double, value);
35-```
36-Append a value to the pngspark.
37-
38-```c
39-int pngspark_write(struct pngspark *ps, FILE *file);
40-```
41-Process the values and write as a PNG to a file.
42-
43-```c
44-int pngspark_end(struct pngspark *ps);
45-```
46-Release allocated memory for the pngspark. (Does not free `ps`, however).
47-
48-## License
49-
50-MIT
README.mdView
@@ -1,0 +1,50 @@
1 +# pngspark
2 +### [Sparklines](https://github.com/holman/spark) as PNGs
3 +
4 +## Install
5 +```
6 +make
7 +[sudo] make install [PREFIX=/usr/local]
8 +```
9 +
10 +## Usage
11 +```
12 +pngspark [-h height] [-c color] [-s scaling] output.png
13 +```
14 +
15 +### Options
16 +* `-h height`: the height of the image in pixels
17 +* `-c color`: the color of the foreground, as #rrggbb hex
18 +* `-s scaling`: scaling factor. 0 to do no scaling, 1 to make the minimum
19 + value be at the bottom of the image
20 +
21 +## API
22 +
23 +```c
24 +struct pngspark;
25 +```
26 +A png spark instance: collection of values and settings.
27 +
28 +```c
29 +int pngspark_init(struct pngspark *ps, size_t height, const char *color, double scaling);
30 +```
31 +Initialize a pngspark struct.
32 +
33 +```c
34 +int pngspark_append(struct pngspark *ps, double, value);
35 +```
36 +Append a value to the pngspark.
37 +
38 +```c
39 +int pngspark_write(struct pngspark *ps, FILE *file);
40 +```
41 +Process the values and write as a PNG to a file.
42 +
43 +```c
44 +int pngspark_end(struct pngspark *ps);
45 +```
46 +Release allocated memory for the pngspark. (Does not free `ps`, however).
47 +
48 +## License
49 +
50 +MIT

Built with git-ssb-web