File:Фрактальные прямоугольники.jpg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this preview: 605 × 599 pixels. Other resolutions: 242 × 240 pixels | 639 × 633 pixels.
Original file (639 × 633 pixels, file size: 242 KB, MIME type: image/jpeg)
File information
Structured data
Captions
Summary
[edit]DescriptionФрактальные прямоугольники.jpg |
English: Fractal from rectangles Русский: Фрактальные прямоугольники |
Date | |
Source | Own work |
Author | Владислав Молдован |
pascal src code
[edit]uses DrawMan;
const
W = 300;
H = 300;
Width = 100;
Height = 100;
procedure Draw(x, y, w, h: integer; n: byte);
begin
if (w > 1) and (h > 1) then
begin
PenUp();
ToPoint(x, y);
PenDown();
OnVector(w, 0);
OnVector(0, h);
OnVector(-w, 0);
OnVector(0, -h);
var w2 := w div 2;
var h2 := h div 2;
var xm := x - w2;
var ym := y - w2;
var xp := x + w;
var yp := y + w;
if n <> 1 then Draw(xm, ym, w2, h2, 3);
if n <> 2 then Draw(xp, ym, w2, h2, 4);
if n <> 3 then Draw(xp, yp, w2, h2, 1);
if n <> 4 then Draw(xm, yp, w2, h2, 2);
end;
end;
begin
Field(W, H);
Draw(W div 2 - Width div 2, H div 2 - Height div 2, Width, Height, 0);
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 | 639 × 633 (242 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