Tag:radial

  • IOS swiftui color gradient fill effect

    Time:2021-3-27

    Swiftui provides us with a variety of gradient options, all of which can be used in a variety of ways. Gradient gradient A color gradient represented as an array of color stops, each having a parametric location value. A gradient is a collection of colors, each of which ignores the positional parameter Linear gradient Linear […]

  • JavaScript graphic example: Archimedes spiral

    Time:2021-3-4

    1. Archimedes spiral Archimedes spiral is also known as “constant velocity spiral”. When a point P moves along the moving ray OP at the same speed, the ray rotates around the point o at the same angular speed. The trajectory of point P is called “Archimedean spiral”. The Cartesian coordinate equation of Archimedes spiral is […]

  • How does scratch 3.0 make background image of ray effect?

    Time:2020-9-27

    How can we add various background images to the background map of the program? Let’s take a look at the detailed tutorial. Software name: Scratch 3.0 offline Edition (children programming software) offline editor v3.6.0 Chinese free installation version Software size: 171MB Update time: 2020-02-21Download now 1. Open scratch 3.0 software and enter its main interface; […]

  • Canvas learning arrangement

    Time:2020-7-14

    fill Solid color var cvs = document.getElementById(“myCanvas”); var ctx = cvs.getContext(“2d”); ctx.fillStyle = “#FF0000”; ctx.fillRect(0,0,150,75); Fountain Fill Radial Gradient var cvs = document.getElementById(‘myCanvas’) var ctx = cvs.getContext(“2d”) //Create gradient 1 – 45 degree radial gradient var grd1 = ctx.createLinearGradient(0, 0, 100, 100); grd1.addColorStop(0, ‘red’) grd1.addColorStop(1, ‘white’) //Create gradient 2 – horizontal radial gradient var grd2 […]

  • Analysis of the use of ray cast! Cocos Creator 3D !

    Time:2019-12-20

    Oh dear? Why did I set the node click callback to fail to respond? I remember that there was a problem when I was writing chicken patting. To capture the click event of volleyball, I added node event to 3D node according to 2D writing method, but it didn’t respond. The code looks like this. […]