Measure devel notes: Difference between revisions
Jump to navigation
Jump to search
(Draw dotted line log) |
No edit summary |
||
Line 7: | Line 7: | ||
Measure Activity logs metadata file |
Measure Activity logs metadata file |
||
Logname |
|||
Number of logs |
|||
⚫ | |||
Start |
|||
Filename |
Filename |
||
LogName |
|||
abc |
|||
Filename |
Filename |
||
Stop |
|||
==Draw dotted log== |
==Draw dotted log== |
||
context.move_to(x,y) |
context.move_to(x,y) |
||
context.arc(x,y,r,0,2*pi) |
context.arc(x,y,r,0,2*pi) |
||
⚫ | |||
==Convert #RRGGBB to an (R, G, B) tuple== |
|||
colorstring = colorstring.strip() |
|||
if colorstring[0] == '#': colorstring = colorstring[1:] |
|||
r, g, b = colorstring[:2], colorstring[2:4], colorstring[4:] |
|||
r, g, b = [int(n, 16) for n in (r, g, b)] |
|||
return (r, g, b) |
Revision as of 05:42, 20 October 2007
Measure Development Notes
For note-taking and reference during the course of development of Measure Activity. For the official page please see Measure
Metadata file associated with Logs (under development)
Measure Activity logs metadata file Logname Filename LogName Filename
Draw dotted log
context.move_to(x,y) context.arc(x,y,r,0,2*pi)
Convert #RRGGBB to an (R, G, B) tuple
colorstring = colorstring.strip() if colorstring[0] == '#': colorstring = colorstring[1:] r, g, b = colorstring[:2], colorstring[2:4], colorstring[4:] r, g, b = [int(n, 16) for n in (r, g, b)] return (r, g, b)