Canvas notes (ongoing updates) and canvas updates

Source: Internet
Author: User

Canvas notes (ongoing updates) and canvas updates
1. Start with line

HTML <canvas id = "canvas"> </canvas> Javascriptvar canvas = document. getElementById ("canvas"); var context = canvas. getContext ("2d ")
  • Canvas. width
  • Canvas. height
  • Canvas. getContext ("3d ")
MoveTo (x, y) lineTo (x, y) beginPath () closePath () lineWidthstrokeStylefileStyle fill () stroke () Draw a rectangle rect (x, y, width, height) fillRect (x, y, width, height) strokeRect (x, y, width, height) 2. line attributes
  • LineWidth
  • LineCap = "but" (default)
"Round" "square"
  • LineJion = "miter" (default)
"Bevel" "round"
  • MiterLimit
3. Star and image Conversion Save () restore () translate (x, y) retate (deg) scale (sx, sy) transform (a, B, c, d, e, f) setTransform (, b, c, d, e, f) 4. gradient and Texture FillStyle = color gradient # ffffff image #642 canvas reb (255,128, 0) video reba (100,100,100, 0.8) hsl (20, 62%, 28%) hsla (33%, 0.6) red fillStyle = gradient var gra = context. creatLineatGradient (xstart, ystart, xend, yend) Radial Gradientvar gra = context. creatRadialGradient (x0, y0, r0, x1, y1, r1) gra. addColorStop (stop, color) fillStyle = image | canvas | videocreatePattern (img, repeat-style) createPattern (canvas, repeat-style) createPattern (video, repeat-style) repeat-style: no-repeat-x repeat-y repeat strokeStyle also has all of the above features

What is Nima vitegenstan talking about? Reading vitegenstan's notes (continuously updating... if you can)

In fact, I spent more than a year reading vitegenstan's logical philosophical theory. At that time, I read it twice and it abused me. Recently, I took the opportunity to challenge Vigo again. This time I read "The study of philosophy" and "detoxification" jointly written by HAN Lin. Outbreak! Universe! Let's talk about logical philosophy. This book has three themes: the world, the mind, and the language. The language is the core. To put it this way, the language is used to reach the world. The world is the sum of facts from the beginning of logical philosophy. In fact, you don't have to think about why. If you really want to think about it, you will be dizzy. This is completely an exclusive statement, think of the world as a given thing. In the early stage, vitegenstan's views on the world were a bit like true and objective. In the later stages, the idea tends to be focused. The true standpoint is probably like this-the structure of the world is independent of the structure of language. In the early stage, the world of vitegenstan was given, not constructed by the soul and soul, so we can accept it and don't think too much. The world is the sum of facts. The world here is the meaning of the universe, and facts are relative to things, individuals, and nature. A thing must be in a structure. This structure is called a fact structure, that is, a fact is in a fact structure. The world is a huge fact. What is truth? In this case, assume that a is an individual, and F is a property. "a has F" is a fact, or a simple fact ". Simple facts, or basic facts (atomic facts, events) are analyzed as objects. This object is awesome. An object can penetrate the entire Logical space. What does Shenma mean? That is to say, given an object, the whole world is given. (⊙ O ⊙) Ah! Why? There is no reason, the theory of being an exclusive, that is, the philosophy of the horse. Here is a more detailed explanation. Some people translate the "object" in the logical philosophical theory into "object", which is wrong! In the preliminary dimension, objects constitute the foundation of all things and have absolute simplicity. That is, a unit (with no structure) can also be seen as a symbol. Objects are not what we usually mean. For example, we usually say "looking for objects. Repeat it again. The object here has absolute simplicity and does not exist. It is permanent and out of the time structure. Don't ask why! No. Why! Just disconnected! The objects of vitegenstan are different from those of traditional philosophy. Their objects must be in a structure, that is, facts. The existence of an object is equivalent to the existence of the whole world. Because the object must be in a structure, and the object exists, the structure exists and the whole world exists. Another important concept is "logical space ". To be continued ···········

What is Nima vitegenstan talking about? Reading vitegenstan's notes (continuously updating... if you can)

In fact, I spent more than a year reading vitegenstan's logical philosophical theory. At that time, I read it twice and it abused me. Recently, I took the opportunity to challenge Vigo again. This time I read "The study of philosophy" and "detoxification" jointly written by HAN Lin. Outbreak! Universe! Let's talk about logical philosophy. This book has three themes: the world, the mind, and the language. The language is the core. To put it this way, the language is used to reach the world. The world is the sum of facts from the beginning of logical philosophy. In fact, you don't have to think about why. If you really want to think about it, you will be dizzy. This is completely an exclusive statement, think of the world as a given thing. In the early stage, vitegenstan's views on the world were a bit like true and objective. In the later stages, the idea tends to be focused. The true standpoint is probably like this-the structure of the world is independent of the structure of language. In the early stage, the world of vitegenstan was given, not constructed by the soul and soul, so we can accept it and don't think too much. The world is the sum of facts. The world here is the meaning of the universe, and facts are relative to things, individuals, and nature. A thing must be in a structure. This structure is called a fact structure, that is, a fact is in a fact structure. The world is a huge fact. What is truth? In this case, assume that a is an individual, and F is a property. "a has F" is a fact, or a simple fact ". Simple facts, or basic facts (atomic facts, events) are analyzed as objects. This object is awesome. An object can penetrate the entire Logical space. What does Shenma mean? That is to say, given an object, the whole world is given. (⊙ O ⊙) Ah! Why? There is no reason, the theory of being an exclusive, that is, the philosophy of the horse. Here is a more detailed explanation. Some people translate the "object" in the logical philosophical theory into "object", which is wrong! In the preliminary dimension, objects constitute the foundation of all things and have absolute simplicity. That is, a unit (with no structure) can also be seen as a symbol. Objects are not what we usually mean. For example, we usually say "looking for objects. Repeat it again. The object here has absolute simplicity and does not exist. It is permanent and out of the time structure. Don't ask why! No. Why! Just disconnected! The objects of vitegenstan are different from those of traditional philosophy. Their objects must be in a structure, that is, facts. The existence of an object is equivalent to the existence of the whole world. Because the object must be in a structure, and the object exists, the structure exists and the whole world exists. Another important concept is "logical space ". To be continued ···········

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.