You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
709 B
25 lines
709 B
require 'cairo' |
|
|
|
module Squib |
|
class Card |
|
attr_reader :width, :height |
|
attr_accessor :cairo_surface, :cairo_context |
|
|
|
def initialize(width, height) |
|
@width=width; @height=height |
|
@cairo_surface = Cairo::ImageSurface.new(width,height) |
|
@cairo_context = Cairo::Context.new(@cairo_surface) |
|
end |
|
|
|
######################## |
|
### BACKEND GRAPHICS ### |
|
######################## |
|
require 'squib/graphics/background' |
|
require 'squib/graphics/image' |
|
require 'squib/graphics/save_doc' |
|
require 'squib/graphics/save_images' |
|
require 'squib/graphics/shapes' |
|
require 'squib/graphics/text' |
|
|
|
end |
|
end |