• Kotlin round progress bar


    Custom round progress bar of kotlin version Most start-up pages have a progress bar loading style, so I rewrite it with kotlin. If it’s really cool, there are still many things to add A simple progress bar is basically composed of a background ring and a progress ring. What we need to pay attention to […]

  • HTML5 canvas drawing rectangle and circle instance code


    HTML5 canvas drawing rectangle and circle instance code JavaScript CodeCopy content to clipboard <!DOCTYPE html>    <html>        <head>            <meta charset=“UTF-8”>            <title></title>        </head>        <body onload=“draw(),drawarc()”>    <! — drawing steps: get canvas element, get context, fill and draw border, set drawing style <! — to draw other complex graphics, you need to use paths: […]

  • Thingjs teaches you to create a polygon area that can’t escape


    Maybe fate is a closed curve walking, no matter how to walk is a polygon. Thingjs teaches you to create a polygon area that can’t escape. JS syntax is super simple. Rectangular and circular areas are easy to draw. Most modeling tools can drag and drop to generate them directly, but the polygon area needs […]

  • The animation effect of “peacock opens the screen” by flutter


    Lao Meng‘s Guide: today we share an animation effect similar to “peacock opens the screen”. When opening a new page, the new page will gradually open from the top right corner of the screen to the full screen. Let’s look at the specific effect first I don’t know the name of this effect? If you […]

  • Method and skill of redrawing button into circle in Xaml


    When using XAML layout, sometimes in order to make the interface metro, some buttons need to use the circle instead of the default rectangle. The following button styles can solve this problem and can be modified according to your own needs. Of course, if you are familiar with bland, you can directly use it to […]

  • Vue uses canvas to draw arc progress bar


    After a few words, let’s go to the effect drawing first, and then look down if it meets the requirementsThis is a small function of youzan mall.Paste the method directly, and then call the method directly to transfer the value. html: <canvas id=”circle” class=”circle-item” width=”240px” height=”240px” > </canvas> script: mounted() { this.toCanvas(“circle”, 70); //The first […]

  • IOS memo


    Years ago, during the new year period, the company’s project time was tight and very busy. In addition, I was working on a small IOS project, so I didn’t have a rest during the off-duty and weekend time, so the blog was slack. Here’s a little summary of some of the code I used to […]

  • C ා define geometry with abstract class


    using System;/*using System.Data;*/namespace tx{    abstract class tx    {        public double chang;        public double kuan;        public double r;        public double pai;        public tx(double chang, double kuan)        {            this.chang = chang;            this.kuan = kuan;           /* this.r = r;            this.pai = pai*/;        }        public abstract void mj();    }    class Cfx:tx    {        public Cfx(double chang, double kuan) : base(chang,kuan) […]

  • Set the curve symbol symbol and corresponding relationship of ZedGraph in WinForm


    scene In winforn, set the properties of ZedGraph curve, coordinate axis and scale: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 Multiple Y axes of ZedGraph are implemented in WinForm (download with source code): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100132245 After adding multiple curves, the curve without any symbol will be generated by default, if you want to modify the symbol of its curve. Note: Blog home […]

  • How can scratch realize the kitten to follow the circular path?


    A small animation can be made in scratch. We can add script to the kitten and let the kitten draw a red circle for us. See the introduction below for details. Software name: Scratch3.0 offline editor v3.4.0 free installation in Chinese Software size: 170.7MB Updated: 2019-08-31 1. Open scratch to enter its main interface; 2. […]

  • How does scratch make kittens draw pink circles?


    In scratch, we can program kittens to do all kinds of things for us. Today, we’ll take a look at a tutorial to let kittens draw pink circles. Software name: Scratch 2 (graphical programming tool) v2.0 official free green version Software size: 42.1MB Updated: 2016-01-15 1. Open scratch 2.0 and enter its main interface; 2. […]

  • Implementation of Round Waveeview with Android Custom View


    Recently, I learned some knowledge about Bessel Curve, just need to achieve a circular schedule in the project, and then I will record the waveView of the implementation. The knowledge you need to use is probably customized view, Bessel curve, value Animator (attribute animation), Xfermode, etc. The following is the effect diagram: Not much nonsense. […]