%% Create a Whiteboard System object
% This example shows the class definition of a Whiteboard System object™, two types of finite list properties, and how to use the object. Each time you run the whiteboard object, it draws a line on a whiteboard.
%
%% Definition of the Whiteboard System object

type Whiteboard.m

%
% Construct the System object.

greenInk = Whiteboard;
blueInk = Whiteboard; 

%
% Change the color and set the blue line style.

greenInk.Color = "green";
blueInk.Color = "blue";
blueInk.Style = "dot";

%
% Draw a few lines.

for i=1:3
  greenInk();
  blueInk();
end

%
% Clear the whiteboard

release(greenInk);
release(blueInk);

%
% Copyright 2012 The MathWorks, Inc.