Changeset 4
- Timestamp:
- 11/21/2005 22:29:35 (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 modified
-
bumpspark.rb (modified) (2 diffs)
-
bumpspark4.rb (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bumpspark.rb
r2 r4 1 1 # The bumpspark method takes an Array and builds a sparkline graph from each of 2 2 # the numbers stored contained in that object. The method returns a string containing a bitmap. 3 # # See http://whytheluckystiff.net/bumpspark/ for details. 3 # 4 # See http://whytheluckystiff.net/bumpspark/ for details. 5 4 6 def bumpspark( results ) 5 7 white, red, grey = [0xFF,0xFF,0xFF], [0,0,0xFF], [0x99,0x99,0x99] … … 13 15 ["BM", ibmp.length + 54, 0, 0, 54, 40, results.length * 2, 15, 1, 24, 0, 0, 0, 0, 0, 0].pack("A2Vv2V4v2V6") + ibmp 14 16 end 17