View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

Pen extensions

Home   How To   Code Pool   Public Library   Theory   Events

plotting 2D Arrays (shape [2,2])

class extension: example code: array_plot2D.rtf

Uploaded Image: 2d_plot_1.gif
Array.fill2D(30, 230, { arg i, j; j % i / 20 }).plot2D

Uploaded Image: 2d_plot_2.gif
Array.fill2D(30, 30, { arg i, j; (i & j)  / 10 }).plot2D

the "&" operator does a bitwise AND operation on the two numbers i and j. See boolean operations on signals or numbers


class extension: example code: pen3Dtest.rtf pen3DtestAnimate.rtf
Uploaded Image: pen3Ddex1.gif

Links to this Page