Created
June 17, 2009 01:37
-
-
Save patrickberkeley/131026 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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