• The solution to enlarge and blur canvas drawing


    Let’s first understand the width and height of the canvas canvas.width Is the size of the canvas, and canvas.style.width Is the size of the canvas rendered by the browser First question: the height and width of the canvas The width and height of the canvas must be set in the canvas label. If it is […]

  • How to realize the function of click picture amplification in wechat applet


    This article mainly introduces how to realize the function of click image amplification in wechat applet. The example code is introduced in detail in this article, which has certain reference value for your study or work. You can refer to the following for your friends WXML: <view class=’imgList’> <view class=’imgList-li’ wx:for='{{imgArr}}’> <image class=’img’ src='{{item}}’ data-src='{{item}}’ […]

  • Unity Shader Realizes Free Amplification and Reduction


    In this paper, we share the specific code of Unity Shader to achieve the effect of free amplification and reduction for your reference. The details are as follows. Code: The following shader code is implemented: Shader “Hidden/Wave” { Properties { _MainTex (“Texture”, 2D) = “white” {} _WaveWidth(“Wave Width”,float) = 0.5 _CenterX(“CenterX”,float)=0.5 _CenterY(“CenterY”,float)=0.5 } SubShader { […]