<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://zhidian.wuute.com/html5dev/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://zhidian.wuute.com/html5dev/feed.php">
        <title>HTML5知典 36:26</title>
        <description></description>
        <link>http://zhidian.wuute.com/html5dev/</link>
        <image rdf:resource="http://zhidian.wuute.com/html5dev/lib/tpl/bootstrap3_1/images/favicon.ico" />
       <dc:date>2026-04-19T18:58:17+09:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/36/26/start?rev=1492615493&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/36/26/svg?rev=1492931227&amp;do=diff"/>
                <rdf:li rdf:resource="http://zhidian.wuute.com/html5dev/doku.php/36/26/webgl?rev=1492931294&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://zhidian.wuute.com/html5dev/lib/tpl/bootstrap3_1/images/favicon.ico">
        <title>HTML5知典</title>
        <link>http://zhidian.wuute.com/html5dev/</link>
        <url>http://zhidian.wuute.com/html5dev/lib/tpl/bootstrap3_1/images/favicon.ico</url>
    </image>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/36/26/start?rev=1492615493&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-20T00:24:53+09:00</dc:date>
        <title>图形</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/36/26/start?rev=1492615493&amp;do=diff</link>
        <description>图形

定义

图形(Graphic)是一种视觉元素,通常由点、线、面、体等几何元素和灰度、色彩、线型、线宽等非几何属性组成。

概述

图形(Graphic)主要分为图像(Image)和形状(Shape)两大类。

图像是基于实物的真实感图形,而形状是基于线条信息表示的具有几何意义的抽象图形,广泛用于模型建模,如工程图、ER图、流程图等。</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/36/26/svg?rev=1492931227&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-23T16:07:07+09:00</dc:date>
        <title>SVG</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/36/26/svg?rev=1492931227&amp;do=diff</link>
        <description>SVG

简介

可缩放矢量图形（英语：Scalable Vector Graphics，SVG）是一种基于可扩展标记语言（XML），用于描述二维矢量图形的图形格式。SVG由W3C制定，是一个开放标准。

使用场景

SVG基于VML，这意味着SVG DOM中的每个元素都是可操作的（为元素添加JavaScript事件），在SVG中，被绘制的图形都可以当成一个可操作的对象，如果该对象的属性发生变化，可以通过事件机制，让浏览器实时反映该属性的变化即重绘图形。SVG提供了一系列的图形元素、动画以及事件机制，适用于静态图片的展示，比如google地图。…</description>
    </item>
    <item rdf:about="http://zhidian.wuute.com/html5dev/doku.php/36/26/webgl?rev=1492931294&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-23T16:08:14+09:00</dc:date>
        <title>WebGL</title>
        <link>http://zhidian.wuute.com/html5dev/doku.php/36/26/webgl?rev=1492931294&amp;do=diff</link>
        <description>WebGL

WebGL(Web Graphics Library)是HTML5规范中的一部分，可以用来渲染三维场景。

WebGL源自OpenGL ES（OpenGL for Embedded Systems 是OpenGL三维图形API的子集）。

示例代码


// 创建canvas
function createCanvas(width, height) {
    var canvas = document.createElement(&quot;canvas&quot;);
    canvas.width = width || 300;
    canvas.height = height || 300;
    return canvas;
}

// 创建着色器
function createShader(webGL, source, type) {
    var shader = webGL.createShader(type);
    webGL.shaderSource(shader, source);
    webGL.compileShader(shader);
    …</description>
    </item>
</rdf:RDF>
