Bitmap/Oz: Difference between revisions

Content added Content deleted
m (Fixed syntax highlighting.)
 
Line 2: Line 2:


<code>Array.oz</code>:
<code>Array.oz</code>:
<lang oz>functor
<syntaxhighlight lang="oz">functor
export
export
New
New
Line 80: Line 80:
end
end
end
end
end</lang>
end</syntaxhighlight>


<code>Bitmap.oz</code>:
<code>Bitmap.oz</code>:
<lang oz>%% For real task prefer QTk's images:
<syntaxhighlight lang="oz">%% For real task prefer QTk's images:
%% http://www.mozart-oz.org/home/doc/mozart-stdlib/wp/qtk/html/node38.html
%% http://www.mozart-oz.org/home/doc/mozart-stdlib/wp/qtk/html/node38.html


Line 135: Line 135:
{Array2D.transform Arr Fun}
{Array2D.transform Arr Fun}
end
end
end</lang>
end</syntaxhighlight>


<code>makefile.oz</code>:
<code>makefile.oz</code>:
<lang oz>makefile(
<syntaxhighlight lang="oz">makefile(
lib:['Array2D.ozf' 'Bitmap.ozf']
lib:['Array2D.ozf' 'Bitmap.ozf']
)</lang>
)</syntaxhighlight>