Changeset 4

Show
Ignore:
Timestamp:
11/21/2005 22:29:35 (3 years ago)
Author:
mental
Message:

Add bumpspark4, the 4bpp bumpspark, and do a bit of whitespace fixery.

Location:
trunk
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/bumpspark.rb

    r2 r4  
    11# The bumpspark method takes an Array and builds a sparkline graph from each of  
    22# 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 
    46def bumpspark( results ) 
    57    white, red, grey = [0xFF,0xFF,0xFF], [0,0,0xFF], [0x99,0x99,0x99] 
     
    1315    ["BM", ibmp.length + 54, 0, 0, 54, 40, results.length * 2, 15, 1, 24, 0, 0, 0, 0, 0, 0].pack("A2Vv2V4v2V6") + ibmp 
    1416end 
     17