university of california, santa cruz / department of film & digital media

foundations of digital media

f i l m  &  d i g i t a l   m e d i a   1 7 0 a

assignment: twelve:

Translate your first DBN program written for assignment three (i.e., letter.dbn) into a Java application. Here is an example of how I translated my (buggy) letter "A" (written in DBN) into a (non-buggy) Java program. Here is the DBN code: example-letter.dbn; The DBN version is buggy because I worked with the assumption that floating point division worked in DBN (when in fct, as we know, only integer division is supported by DBN). And, here is the Java code: ExampleLetter.java with a supporting file: ApplicationFrame.java.