DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ B T ┃
Length: 2779 (0xadb) Types: TextFile Names: »B«
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11 └─ ⟦129cab021⟧ »DATA« └─⟦this⟧
with Easy_X; package body Graphiques is procedure Open (Screen : String := "bistorte"; Text : String := "Tiny_Talk"; A : in Easy_X.Coordinate := 50; B : in Easy_X.Dimension := 300) is X, Y : Integer := 0; begin Easy_X.Open (Display => Screen, Title => Text, Left => A, Width => B); Graphiques.Plot (X, Y); end Open; procedure Close is begin Easy_X.Close; end Close; procedure Move (X : in Integer; Y : in Integer) is begin X_Current := X; Y_Current := Y; Easy_X.Move_To (Easy_X.Coordinate (X_Current), Easy_X.Coordinate (Y_Current)); end Move; procedure Draw (X : in Integer; Y : in Integer) is begin Easy_X.Move_To (Easy_X.Coordinate (X_Current), Easy_X.Coordinate (Y_Current)); X_Current := X; Y_Current := Y; Easy_X.Line_To (Easy_X.Coordinate (X_Current), Easy_X.Coordinate (Y_Current)); end Draw; procedure Carre (X : in Integer; Y : in Integer; Cote : in Integer) is begin Move (X, Y); Draw (X + Cote, Y); Draw (X + Cote, Y + Cote); Draw (X, Y + Cote); Draw (X, Y); end Carre; procedure Plot (X : in Integer; Y : in Integer) is begin X_Current := X; Y_Current := Y; Easy_X.Move_To (Easy_X.Coordinate (X_Current), Easy_X.Coordinate (Y_Current)); Easy_X.Line_To (Easy_X.Coordinate (X_Current), Easy_X.Coordinate (Y_Current)); end Plot; procedure Rectangle (X1 : in Integer; Y1 : in Integer; X2 : in Integer; Y2 : in Integer) is begin Easy_X.Move_To (Easy_X.Coordinate (X1), Easy_X.Coordinate (Y1)); Easy_X.Line_To (Easy_X.Coordinate (X2), Easy_X.Coordinate (Y1)); Easy_X.Line_To (Easy_X.Coordinate (X2), Easy_X.Coordinate (Y2)); Easy_X.Line_To (Easy_X.Coordinate (X1), Easy_X.Coordinate (Y2)); Easy_X.Line_To (Easy_X.Coordinate (X1), Easy_X.Coordinate (Y1)); end Rectangle; procedure Thick (Taille : in Integer) is begin Easy_X.Set_Pen (Easy_X.Dimension (Taille)); end Thick; procedure Write (A_String : in String; Font : in Size := Medium) is begin Easy_X.Draw_String (A_String); Easy_X.Set_Font (Easy_X.Fonts'Val (Size'Pos (Font))); end Write; procedure Set_Display (Display : Integer) is begin null; end Set_Display; function Get_Display return Integer is I : Integer; begin return I; end Get_Display; end Graphiques;