how to join two table in codeigniter easily[updated] | ci_model | ci_controller | codeigniter 3 -datainflow
Today in this article I am going to show you how to make a circular gradient in html canvas. So lets start. You must know what is canvas- The HTML <canvas> element is used to draw graphics on a web page. A canvas is a rectangular area on an HTML page. By default, a canvas has no border and no content.
I have use a page named index.html and the codes to this page are as follows:
index.html
<canvas id="myCanvas" width="200" height="100" style="border:1px solid #000000;"> </canvas> <script> var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); var grd = ctx.createRadialGradient(75,50,5,90,60,100); grd.addColorStop(0,"red"); grd.addColorStop(1,"white"); ctx.fillStyle = grd; ctx.fillRect(10,10,150,80); </script>
Related posts