File:Троичное дерево.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Троичное_дерево.png (496 × 491 pixels, file size: 11 KB, MIME type: image/png)
File information
Structured data
Captions
Summary[edit]
DescriptionТроичное дерево.png |
English: Ternary tree Русский: Троичное дерево |
Date | |
Source | Own work |
Author | Владислав Молдован |
Pascal src code[edit]
uses GraphABC;
const
Length = 240;
Angle = 120;
procedure Draw(x, y, r: real; ang, rotation: real);
var
xp, yp: real;
begin
var steps := 360 div Angle - 1;
for var i := 0 to steps do
if i * Angle <> ang then
begin
var ang1 := DegToRad(Angle * i + rotation);
Line(Round(x), Round(y), Round(x + r * Cos(ang1)), Round(y + r * Sin(ang1)));
end;
for var i := 0 to steps do
begin
var r2 := r / 2;
var ang1 := DegToRad(Angle * i + rotation);
xp := x + r2 * Cos(ang1);
yp := y + r2 * Sin(ang1);
if r >= 1 then
Draw(xp, yp, r2 - 10, i * Angle, rotation);
end;
end;
begin
SetWindowIsFixedSize(true);
SetWindowSize(500, 500);
SetSmoothingOff();
LockDrawing();
while true do
begin
var c := clRandom();
for var i := 0 to 360 do
begin
ClearWindow(clBlack);
SetPenColor(c);
Draw(Window.Width / 2, Window.Height / 2, Length, 1, i);
Redraw();
end;
end;
end.
Licensing[edit]
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 14:14, 1 September 2017 | 496 × 491 (11 KB) | Владислав Молдован (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on ru.wikibooks.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Horizontal resolution | 37.79 dpc |
---|---|
Vertical resolution | 37.79 dpc |