6 changed files with 25 additions and 3 deletions
@ -0,0 +1,12 @@ |
|||||||
|
module Squib |
||||||
|
class Card |
||||||
|
|
||||||
|
def png(file, x, y) |
||||||
|
cc = cairo_context |
||||||
|
png = Cairo::ImageSurface.from_png(file) |
||||||
|
cc.set_source(png, x, y) |
||||||
|
cc.paint |
||||||
|
end |
||||||
|
|
||||||
|
end |
||||||
|
end |
||||||
|
After Width: | Height: | Size: 2.7 KiB |
Loading…
Reference in new issue