4 changed files with 21 additions and 13 deletions
@ -1,8 +1,15 @@ |
|||||||
|
require 'cairo' |
||||||
|
|
||||||
module Squib |
module Squib |
||||||
|
|
||||||
class Card |
class Card |
||||||
def initialize(width: 825, height: 1125) |
attr_reader :width:, :height |
||||||
|
attr_accessor :cairo_surface, :cairo_context |
||||||
|
|
||||||
|
def initialize(width, height) |
||||||
@width=width, @height=height |
@width=width, @height=height |
||||||
|
@cairo_surface = Cairo::ImageSurface.new(width,height) |
||||||
|
@cairo_context = Cairo::Context.new(@cairo_surface) |
||||||
end |
end |
||||||
end |
end |
||||||
|
|
||||||
|
|||||||
@ -1,7 +0,0 @@ |
|||||||
module Squib |
|
||||||
|
|
||||||
class TextCmd |
|
||||||
|
|
||||||
end |
|
||||||
|
|
||||||
end |
|
||||||
Loading…
Reference in new issue