% Draw sky scene

x= 0; y= 0; % coordinates of center of rectangle
w= 6; % width
h= 4; % height
stdev= 1; % standard deviation of the normal random distribution to use
minsize= .1; % draw rectangle if either side is smaller than minsize

% Initialize corners with random colors
cbl=rand(1,3); % bottom left
cbr=rand(1,3); % bottom right
ctr=rand(1,3); % top right
ctl=rand(1,3); % top left

% Example: Initialize corners with "sky colors"
% cbl=[176 226 255]/255; % light sky
% cbr=[198 226 255]/255; % slate gray
% ctl=[ 0 191 255]/255; % deep sky
% ctr=[135 206 255]/255; % sky

close all
figure
axis equal off
hold on
sky(x,y,w,h,cbl,cbr,ctr,ctl,stdev,minsize)
hold off