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 7437489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:24:28+00:00 2026-05-29T10:24:28+00:00

My understanding is that Processing.js converts Processing code into javascript. But if one does

  • 0

My understanding is that Processing.js converts Processing code into javascript. But if one does not want to write in Processing, one can use methods and properties of the processing object like so:

function sketchCirc(processing) {

    function drawCirc() {
            processing.background(100);
            processing.ellipse(X,Y,radius,radius);
            processing.fill(0,121,184);
            processing.stroke(255);
        }

    processing.draw = function() {

        drawCirc();
    }

I prefer to use the above approach (meaning accessing methods of the processing object), but are there any downsides to this? I want to avoid having to learn the Processing language from scratch. Please let me know what your ideas are.

  • 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. Editorial Team
    Editorial Team
    2026-05-29T10:24:29+00:00Added an answer on May 29, 2026 at 10:24 am

    Processing.js doesn’t convert Processing code into JavaScript. It is a Javascript library that mirrors/wraps Processing methods. It’s still a javascript library, like any and since it mirrors Processing’s main functions, you can use roughly the same syntax. If Processing.js converted Processing code into JavaScript, it would convert Java libraries to JavaScript, which is not true.

    There shouldn’t be any downsides to using Processing as you’ve described above.

    Processing’s reference isn’t amazingly long nor difficult and if you plan to stay in 2D, you’ll probably use even less of what’s listed there. If you’re using an IDE with autocompletion for JS you probably won’t even need to the reference as function names are mostly intuitive.

    It might worth having a play with Processing and getting used as you’ll also be able to deploy standalone applications to Windows/Linux/OSX/Android. The alpha releases even include a JavaScript mode with some neat examples, straight out of the box.

    Update
    Using Processing 2 or newer versions you can add a JavaScript Mode into the IDE which will also include some nice examples.

    Also, there is newer, pure javascript implementation called p5.js.
    This might be closer to hat you’re looking for.

    Still if Processing isn’t your cup of tea, you might want to try PaperJS or Raphael.

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

Sidebar

Related Questions

It is my understanding that page level caching does not take into account that,
It is to my understanding that one should use a forward-class declaration in the
It is my understanding that the java.regex package does not have support for named
The novice understanding of Node is that if I re-write synchronous, or in-line code,
My understanding is that both JAAS and SQL Server can be configured to use
Understanding that I should probably just dig into the source to come up with
It's my understanding that nulls are not indexable in DB2, so assuming we have
It's my understanding that common wisdom says to only use exceptions for truly exceptional
It is my understanding that I can test that a method call will occur
I understand that Javascript doesn't have multiple threads, but I'd like to know if

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.