Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to make a line graph
Started by lorik.dominic Feb 17 2018 10:43 AM

2 replies to this topic
graph help
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

lorik.dominic

[GLOBAL: userInfoPane.html]
lorik.dominic
  • Observer

  • 7 posts
  • Corona SDK

Hi all,

I was wondering how to make a line graph. For example, graphing y = sin(x).  I also want to be able to remove the grid if possible and turn the graph into an object that can be moved around. 

 

 

Thanks!


  • lorik.dominic likes this

[TOPIC: post.html]
#2

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 369 posts
  • Corona SDK

Explore Edge Shape or "Chain" Bodies

https://docs.coronalabs.com/api/library/physics/addBody.html

 

You can use this with your vertices to make graph and use a touch joint to move it.

https://docs.coronalabs.com/api/library/physics/newJoint.html

 

Enclosing the chain so it meets itself might be helpful - I can't quite remember, but explore those features a little


  • lorik.dominic likes this

[TOPIC: post.html]
#3

lorik.dominic

[GLOBAL: userInfoPane.html]
lorik.dominic
  • Observer

  • 7 posts
  • Corona SDK

Explore Edge Shape or "Chain" Bodies

https://docs.coronalabs.com/api/library/physics/addBody.html

 

You can use this with your vertices to make graph and use a touch joint to move it.

https://docs.coronalabs.com/api/library/physics/newJoint.html

 

Enclosing the chain so it meets itself might be helpful - I can't quite remember, but explore those features a little

Thank you very much sporkfin!




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: graph, help