Tag:enlarge

  • The solution to enlarge and blur canvas drawing

    Time:2020-11-24

    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

    Time:2020-2-20

    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

    Time:2019-5-12

    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 { […]