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

  • SEARCH
  • Home
  • 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

I decided to drop md5() as the password-encrypting algorithm when storing user passwords in
I want to implement Dijkstra algorithm and in serious need for storing vertex in
I have a useful macro here: #include <algorithm> #include <vector> #include <string> #include <boost/algorithm/string.hpp>
What algorithms and processes are involved in storing revision changes like stackoverflow and wikipedia
Algorithm to generate all possible letter combinations of given string down to 2 letters
Implement an algorithm to determine if a string has all unique characters. What if
I have a recursive algorithm which steps through a string, character by character, and
If I have an immutable string is the hashing algorithm run every time I
I'm studying string searching algorithms now and wondering what algorithm is used for .NET
I am looking for a algorithm that takes a string and splits it into

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.