DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦39dd743c2⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Graphic_Objects, seg_059513

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Easy_X;
use Easy_X;
package body Graphic_Objects is  
    procedure Draw_Line (X1, Y1, X2, Y2 : Coordinate) is
    begin
        Move_To (X1, Y1);
        Line_To (X2, Y2);
    end Draw_Line;

    procedure Draw_Rectangle (X, Y : Coordinate; W, H : Dimension) is
        use Arithmetic;
    begin
        Move_To (X, Y);
        Line_To (X + W, Y);
        Line_To (X + W, Y + H);
        Line_To (X, Y + H);
        Line_To (X, Y);
    end Draw_Rectangle;

    procedure Draw_Wind_Mill (X, Y : Coordinate; Size : Dimension) is
        use Arithmetic;
    begin
        Draw_Rectangle (X, Y, Size, Size);
        Draw_Line (X, Y, X + Size, Y + Size);
        Draw_Line (X, Y + Size, X + Size, Y);
        Line_To (X + Size / 2, Y - Size / 2);
        Line_To (X, Y);
    end Draw_Wind_Mill;


    procedure Draw_The_Netherlands
                 (Left, Bottom : Coordinate; Width : Dimension) is
        X, Y : Coordinate;
        Size : Dimension;
        use Arithmetic;
    begin  
        X := Left;
        Y := Bottom - Width;
        Size := Width;
        for I in 1 .. 7 loop
            Draw_Wind_Mill (X, Y, Size);
            X := X + Size + 20;
            Y := Y - 20;
            Size := Size - 18;
        end loop;
    end Draw_The_Netherlands;
end Graphic_Objects;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=23 rec1=00 rec2=01 rec3=02a
        [0x01] rec0=0e rec1=00 rec2=02 rec3=000
    tail 0x21767a15489057cd6f49f 0x42a00088462060003