File:Animated cardioid.gif
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Animated_cardioid.gif (480 × 480 pixels, file size: 78 KB, MIME type: image/gif, looped, 40 frames, 4.0 s)
File information
Structured data
Captions
Summary
[edit]DescriptionAnimated cardioid.gif |
English: This file was created by me (Deimos 28) using the following R source code:
N=40 theta = function(n) {return(2*pi*((0:(n-1))/((n-1))-1/2))} x=cos(theta(N))+cos(2*theta(N)) y=sin(theta(N))+sin(2*theta(N)) nbdigit=function(n) {return(floor(log(n,base=10))+1)} headingzeros=function(n) {return(3-nbdigit(n))} jpeg("animated_001.jpg") plot(x,y,type="l",xlim=c(-1.25,2.05),ylim=c(-1.75,1.75),axes=FALSE,xlab="",ylab="") dev.off() for (i in 2:N) { a="animated_" if (headingzeros(i)>0) { for (j in 1:headingzeros(i)) { a=paste(a,0,sep="") } } jpeg(paste(a,i,".jpg",sep="")) plot(x,y,type="l",xlim=c(-1.25,2.05),ylim=c(-1.75,1.75),axes=FALSE,xlab="",y lines(x[1:i],y[1:i],type="l",col=2,lwd=3) dev.off() } Then using the following shell command: convert -delay 2 -loop 50 ani*.jpg animated.gifNote: image optimized by User:Kieff. The above code generates JPEG frames, which introducte compression artifacts that are extremely inneficient for the purpose of a GIF animation. |
Date | 21 March 2006 (original upload date) |
Source | Transferred from en.wikipedia to Commons. |
Author | The original uploader was Deimos 28 at English Wikipedia. |
Licensing
[edit][[:en:User:{{{1}}}|{{{1}}}]] at the English-language Wikipedia, the copyright holder of this work, hereby publishes it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. Subject to disclaimers. | ||
Attribution: [[:en:User:{{{1}}}|{{{1}}}]] at the English-language Wikipedia | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License. Subject to disclaimers.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
Original upload log
[edit]The original description page was here. All following user names refer to en.wikipedia.
Date/Time | Dimensions | User | Comment |
---|---|---|---|
2006-09-25 15:40 | 480×480× (79799 bytes) | LucasVB | MUCH better version, no JPEG artifacts, severe size reduction. |
2006-03-21 14:45 | 480×480× (552741 bytes) | Deimos 28 | This file was created by me (~~~) using the following [http://wwwr-project.org R] source code: <pre><nowiki> N=40 theta = function(n) {return(2*pi*((0:(n-1))/((n-1))-1/2))} x=cos(theta(N))+cos(2*theta(N)) y=sin(theta(N))+sin(2*theta(N)) nbdigit=function( |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 22:51, 7 August 2017 | 480 × 480 (78 KB) | BD2412 (talk | contribs) | Transferred from en.wikipedia |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.