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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:40:49+00:00 2026-05-13T07:40:49+00:00

I have got experience in iPhone programming but not really in graphics programming. I

  • 0

I have got experience in iPhone programming but not really in graphics programming.

I decided to make a 2d game and choose Quartz 2D for this purpose (I’m familiar with Open GL, but quartz seems to be easier for a 2d game).

Is there a built-in way to draw a graph of a math formula in Quartz? For beginning it will be only a parabola (y=ax^2+bx+c) but the equation itself will become more complex in the future.

It may be pretty slow if I will draw the parabola using my own algorithm (from separate lines or dots).

Thank you in advance.

  • 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-13T07:40:50+00:00Added an answer on May 13, 2026 at 7:40 am

    You could calculate some discrete samples of the equations you want to render.
    Your graph will look smooth or polygonal depending on how many samples you provide.

    This blog post describes how to render waveforms for a Mac OS X application.
    As the author is using Quartz and you can probably adapt his approach for your problem.
    The blog post uses the convenient CGPathAddLines() method to create a path from a point array.
    If you’d like to construct your path piece by piece, you could use some of the following methods:

    CGMutablePathRef path = CGPathCreateMutable(); 
    CGPathMoveToPoint(path, ...);
    CGPathAddLineToPoint(path, ...);
    CGPathAddArc(path, ...);
    CGPathCloseSubpath(path);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 265k
  • Answers 265k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Take a look at the Mozilla Developer Center docs on… May 13, 2026 at 12:21 pm
  • Editorial Team
    Editorial Team added an answer You can do this: Appointment.find(:all, :include => {:patient}, :order =>… May 13, 2026 at 12:21 pm
  • Editorial Team
    Editorial Team added an answer #!/usr/bin/ruby1.8 require 'rubygems' require 'nokogiri' html = <<EOS <ul> <li>:… May 13, 2026 at 12:21 pm

Related Questions

I build a parsing algorithm using NSXMLParser. Im having doubt as to what is
I have searched but cant find this question anywhere. My wife and I are
I'm confused about NSUserDefaults on the iPhone. I come from a C / asm
I am trying to geo-tag photos taken with the iPhone camera. Since I'm not
I am new to the iphone platform and am creating an app that retrievals

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.