File:Bw old.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 512 × 512 pixels, file size: 77 KB)

Captions

Captions

Logical pattern

Summary

[edit]
Description
English: Logical pattern
Date
Source Vector version of Bw old.jpg, originally by Dohduhdah.
Author Rmesrmes


 
This W3C-unspecified vector image was created with Inkscape .

Made w/ Processing + editing in Inkscape. Code:

import processing.svg.*;

void setup() {
  size(512, 512);
  beginRecord(SVG, "Bw old.svg");
  background(255);
  noStroke();
  noLoop();
}

void draw() {
  translate(width/2, height/2);
  rotate(HALF_PI);
  scale(-1, 1);
  int N = 256;
  int di = 450;
  fun(N, sqrt(2)*width);
  for (int k = 7; k > 0; k--) {
    fun(int(pow(2, k)), k*di/7.0);
  }
  endRecord();
}

void fun(int N, float di) {
  for (int k = 0; k < N; k++) {
    fill((k%2)*255);
    arc(0, 0, di, di, k*TWO_PI/N, (k+1)*TWO_PI/N);
  }
}

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
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/TimeThumbnailDimensionsUserComment
current14:55, 28 June 2024Thumbnail for version as of 14:55, 28 June 2024512 × 512 (77 KB)Rmesrmes (talk | contribs)Corrected orientation mistake I've let slip by.
18:20, 27 June 2024Thumbnail for version as of 18:20, 27 June 2024512 × 512 (259 KB)Rmesrmes (talk | contribs)Uploaded own work with UploadWizard

The following page uses this file:

Metadata