- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Drawing sine waves with HTML5
To draw sine waves with HTML5, use SVG.
Use the following that closely approximates half of a sine wave. I have used a cubic bezier approximation.
<!DOCTYPE html> <html> <head> <title>SVG</title> <meta charset="utf-8" /> </head> <body> <h2 align = "center">HTML5 SVG Sine Waves</h2> <svg width = "150px" height = "200px" viewBox = "0 0 100 100"> <path stroke = "#00FF00" fill = "none" d = "M0,0 C36.42,0,70.58,100,100,100" /> </svg> </body> </html>
- Related Articles
- How to draw sine waves with HTML5 SVG?
- Drawing an SVG file on an HTML5 canvas
- Drawing text to HTML5 with @fontface does not work at the first time
- Drawing an image from a data URL to a HTML5 canvas
- How to use GoJS HTML5 Canvas Library for drawing diagrams and graphs?
- Compute the inverse sine with scimath in Python
- (a) What are longitudinal waves and transverse waves? Explain with the help of labelled diagrams.(b) Give two examples each of longitudinal waves and transverse waves.
- Matplotlib – Drawing lattices and graphs with Networkx
- In SONAR we use:(a) ultrasonic waves(b) infrasonic waves (c) radio waves (d) audible sound waves
- Why sound waves are called mechanical waves?
- What are longitudinal waves and transverse waves?
- Drawing a network graph with networkX and Matplotlib
- Drawing a rectangle with only border in Matplotlib
- What type of waves are generated by SONAR device fixed to a fishing ship?(a) water waves (b) radio waves(c) sound waves(d) infrared waves
- Sound waves

Advertisements