void branch(float h) {
h *= (float) $('#val_size_1').val();
// All recursive functions must have an exit condition!!!!
// Here, ours is when the length of the branch is 2 pixels or less
if (h > 5) {
pushMatrix(); // Save the current state of transformation (i.e. where are we now)
rotate(theta); // Rotate by theta
line(0,0,0,-h); // Draw the branch
translate(0,-h); // Move to the end of the branch
//ellipse(0, 0, 40, 40);
branch(h); // Ok, now call myself to draw two new branches!!
popMatrix(); // Whenever we get back here, we "pop" in order to restore the previous matrix state
// Repeat the same thing, only branch off to the "left" this time!
pushMatrix();
rotate(-theta);
line(0,0,0,-h);
translate(0,-h);
branch(h);
popMatrix();
}
}
Examples
Here are some PDF output examples that give an idea of what can be done with dblatex and dbcontext.
Dblatex
* Some examples of the features supported by dblatex:
o DocBook Examples
o MathML Examples
o Sources of the Examples
o Sources + PDF Examples
* The dblatex User Manual is a good example of a default DocBook book output rendering.
* The User Manual in DB2LaTeX style shows the DB2LaTeX style applied to the same document.
* The User Manual in Simple style shows a quite basic latex layout applied to the same document.
* A W3C MathML Test Suite 2.0 Excerpt (bzipped) demonstrates the large MathML 2.0 support included by dblatex.
* The DocBook Definitive Guide (gzipped) compiled with dblatex and the tdg-dblatex.xsl stylesheet.
Dbcontext
* The dblatex User Manual done by dbcontext can show how dbcontext handles the same manual.
Intel 4004 microprocessor historical materials
The work licensed under this license is limited to the following:
4004 schematic
(PDF 6.28MB)
4004 mask layout files
* 4004002 (JPG 225KB)
* 4004008 (JPG 64KB)
* 4004013 (JPG 153KB)
* 4004018 (JPG 57KB)
* 4004023 (JPG 168KB)
* 4004029 (JPG 170KB)
4004 manual MSC4 (1974)
(PDF 29.4MB)
4004 datasheet (1987)
(PDF 3MB)
This document was generated using the LaTeX2HTML translator Version 2002-2-1 (1.70)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html recursive.tex
The translation was initiated by John McCarthy on 2006-08-13
TITLE 'DEMOAST1 - READ AND PRINT'
*
* AUTHOR. DON HIGGINS.
* DATE. 12/30/82.
* REMARKS. PC/370 DEMO TO ILLUSTRATE ASSIST DUMP AND LOG OUTPUT.
*
* THIS PROGRAM READS CARDS FROM DEMOAST1.DAT AND LISTS THEM ALONG
* WITH SELECTED DUMPS OF REGISTERS AND STORAGE ON DEMOAST1.LOG.
*
* MAINTENANCE
*
* 05/18/87 CONVERTED TO R2.0 XFILI/XFILO PATH/FILENAME FORMAT
*
*
DEMOAST1 CSECT
USING *,R15
XFILI =C'DEMOAST1.DAT'
XFILO =C'DEMOAST1.LOG'
XDUMP
LOOP EQU *
XREAD CARD
BNZ EOF
XPRNT CARD,80
B LOOP
EOF EQU *
XDUMP CARD,80
XDUMP CARD
SVC EXIT
R15 EQU 15
EXIT EQU 0
CARD DC CL80' '
END DEMOAST1
/pre>