Pure Python PNG Canvas (updated for Python 2.7+)
- 2:42 PM — Nov 12 —
- Source: YCombinator
"CC Attribution-NonCommercial-NoDerivs 2.0 Rui Carmo" __contributors__ = [ "http://collaboa.weed.rbse.com/repository/file/branches/pgsql/lib/spark_pr.rb" ], [ "Eli Bendersky" ] import os , sys , zlib , struct signature = struct. 0.11 ) # compute gradient colors def gradientList ( start , end , steps ): delta = [ end [ i ] - start [ i ] for i in range ( 4 )] grad = [] for i in range ( steps + 1 ): grad. append ([ start [ j ] + ( delta [ j ] * i ) / steps for j in range ( 4 )]) return grad class PNGCanvas : def __init__ ( self , width , height , bgcolor = bytearray ([ 0xff , 0xff , 0xff , 0xff ]), color = bytearray ([ 0 , 0 , 0 , 0xff ])): self. width = width self. height = height self. color = color #rgba self. bgcolor = bgcolor self. canvas = bytearray ( self. 4 * width * height ) def _offset ( self , x , y ): return y * self. Read More
Self employed loans features
- 9:10 PM — Jun 6 —
- Source: Articlesbase.com
Basically anyone these days need self employed loans , whether they are servicemen, businessmen, or they are self employed. Read More
Biography
Self is largely the project of Matt Mahaffey, a Murfreesboro, TN-based singer/songwriter/multi-instrumentalist who began... Read the full Self bio.
Exclusives
-
The BoomBox
The first offering from Rick Ross ' Maybach Music Group rap...Source: The BoomBox
-
The BoomBox
Rick Ross does everything big, which is why he'd have nothing...Source: The BoomBox



