Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 82097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:33:48+00:00 2026-05-10T21:33:48+00:00

What is the algorithm for storing the pixels in a spiral in JS?

  • 0

What is the algorithm for storing the pixels in a spiral in JS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:33:49+00:00Added an answer on May 10, 2026 at 9:33 pm

    http://www.mathematische-basteleien.de/spiral.htm

    var Spiral = function(a) {     this.initialize(a); }  Spiral.prototype = {     _a: 0.5,      constructor: Spiral,      initialize: function( a ) {        if (a != null) this._a = a;     },       /* specify the increment in radians */     points: function( rotations, increment ) {        var maxAngle = Math.PI * 2 * rotations;        var points = new Array();         for (var angle = 0; angle <= maxAngle; angle = angle + increment)        {           points.push( this._point( angle ) );        }         return points;     },      _point: function( t ) {         var x = this._a * t * Math.cos(t);         var y = this._a * t * Math.sin(t);         return { X: x, Y: y };     } }   var spiral = new Spiral(0.3); var points = spiral.points( 2, 0.01 );  plot(points); 

    Sample implementation at http://myweb.uiowa.edu/timv/spiral.htm

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What algorithms and processes are involved in storing revision changes like stackoverflow and wikipedia
I have a recursive algorithm which steps through a string, character by character, and
Given a string like this: a,string, with,various,values, and some,quoted What is a good algorithm
I've been looking for a simple Java algorithm to generate a pseudo-random alpha-numeric string.
Hey, I'm using Levenshteins algorithm to get distance between source and target string. also
Recently, someone asked about an algorithm for reversing a string in place in C
What algorithm taught you the most about programming or a specific language feature? We
Which algorithm does the JavaScript Array#sort() function use? I understand that it can take
I need a quick algorithm to select 5 random elements from a generic list.
I am storing all my passwords in the form hashed. I need to retrieve

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.