Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save patrickberkeley/131026 to your computer and use it in GitHub Desktop.
Save patrickberkeley/131026 to your computer and use it in GitHub Desktop.
# oil painting program
# painting process to be added later
# This Ruby program is a beginners attempt at using Ruby
# to make a alla prima oil painting program
# basic materials and tools to make an alla prima painting
class Painting
attr_accessor :material, :dimensions, :brushes, :palette
end
class Canvas < Painting
end
class Tools < Painting
end
# Charts is short for color charts. These are typically used by alla prima oil painters
# color charts show what color possibilities you have with your palette
class Charts < Painting
attr_accessor :dominantcolors, :warmcolors, :coolcolors
end
# specifications of what the artist is using
# not exactly sure if I wrote code below correctly, I'm new to this
my_painting = Painting.new
my_canvas = "claessens number 13 belgian linen"
my_canvas_dimensions = "11 by 14"
my_palette = "rembrandt palette"
my_tools = "filberts, flats, rounds, palette knife"
my_charts = "transparent oxide red dominant color chart"
puts my_canvas
puts my_canvas_dimensions
puts my_palette
puts my_tools
puts my_charts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment