{"id":241,"date":"2015-10-13T12:45:17","date_gmt":"2015-10-13T03:45:17","guid":{"rendered":"http:\/\/www.takaya-com.jp\/archives\/?p=241"},"modified":"2015-10-13T12:46:50","modified_gmt":"2015-10-13T03:46:50","slug":"svgpart4","status":"publish","type":"post","link":"https:\/\/takaya-com.jp\/archives\/2015\/10\/svgpart4\/","title":{"rendered":"SVG\u8981\u7d20\uff08\u30bf\u30b0\uff09\u306e\u8a18\u8ff0\u306b\u3064\u3044\u3066\uff08\u305d\u306e\uff14\uff09"},"content":{"rendered":"<p><!-- \u672c\u6587 --><\/p>\n<h3>\u25ceSVG\u8981\u7d20\uff08\u30bf\u30b0\uff09\u306e\u8a18\u8ff0\u306b\u3064\u3044\u3066\uff08\u305d\u306e\uff14\uff09<\/h3>\n<p>\u4ee3\u8868\u7684\u306a\u300c\u307c\u304b\u3057\u52b9\u679c\u300d\u300c\u30c9\u30ed\u30c3\u30d7\u30b7\u30e3\u30c9\u30fc\u300d\u300c\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u300d\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u898b\u307e\u3057\u305f\u3002<br \/>\n\uff33\uff36\uff27\u8981\u7d20\uff08\u30bf\u30b0\uff09\u3067\u4f7f\u7528\u51fa\u6765\u308b\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u4e00\u89a7\u306f\u3001\u4e0b\u8a18\u306e\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<p>\u25cb\u4f7f\u7528\u51fa\u6765\u308b\u30d5\u30a3\u30eb\u30bf\u30fc\u4e00\u89a7<br \/>\n\u3000feBlend &#8211; \u30a4\u30e1\u30fc\u30b8\u5408\u6210\u7528\u30d5\u30a3\u30eb\u30bf<br \/>\n\u3000feColorMatrix &#8211; \u8272\u5909\u63db\u7528\u30d5\u30a3\u30eb\u30bf<br \/>\n\u3000feComponentTransfer<br \/>\n\u3000feComposite<br \/>\n\u3000feConvolveMatrix<br \/>\n\u3000feDiffuseLighting<br \/>\n\u3000feDisplacementMap<br \/>\n\u3000feFlood<br \/>\n\u3000feGaussianBlur<br \/>\n\u3000feImage<br \/>\n\u3000feMerge<br \/>\n\u3000feMorphology<br \/>\n\u3000feOffset &#8211; \u30c9\u30ed\u30c3\u30d7\u30b7\u30e3\u30c9\u30fc\u7528\u30d5\u30a3\u30eb\u30bf<br \/>\n\u3000feSpecularLighting<br \/>\n\u3000feTile<br \/>\n\u3000feTurbulence<br \/>\n\u3000feDistantLight &#8211; \u30e9\u30a4\u30c6\u30a3\u30f3\u30b0\u7528\u30d5\u30a3\u30eb\u30bf<br \/>\n\u3000fePointLight &#8211; \u30e9\u30a4\u30c6\u30a3\u30f3\u30b0\u7528\u30d5\u30a3\u30eb\u30bf<br \/>\n\u3000feSpotLight &#8211; \u30e9\u30a4\u30c6\u30a3\u30f3\u30b0\u7528\u30d5\u30a3\u30eb\u30bf<\/p>\n<p>\uff11\u3001\u307c\u304b\u3057\u52b9\u679c<br \/>\n\u3000\u3000&lt;feGaussianBlur&gt;\u8981\u7d20\uff08\u30bf\u30b0\uff09\u306f\u3001\u307c\u304b\u3057\u52b9\u679c\u3092\u767a\u751f\u3055\u305b\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\uff12\u3001\u30c9\u30ed\u30c3\u30d7\u30b7\u30e3\u30c9\u30fc<br \/>\n\t&lt;feOffset&gt;\u8981\u7d20\uff08\u30bf\u30b0\uff09\u306f\u3001\u30c9\u30ed\u30c3\u30d7\u30b7\u30e3\u30c9\u30fc\u3092\u767a\u751f\u3055\u305b\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n\t\u4f8b\u3067\u306f\u3001feOffset\/feColorMatrix\/feGaussianBlur\/feBlend\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\uff13\u3001\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<br \/>\n\u3000\u3000&lt;linearGradient&gt;\u8981\u7d20\uff08\u30bf\u30b0\uff09\u306f\u3001\u7dda\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n\t\u4f8b\u3067\u306f\u3001\u6c34\u5e73\uff65\u5782\u76f4\uff65\u50be\u659c\u306e\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3000\u3000&lt;radialGradient&gt;\u8981\u7d20\uff08\u30bf\u30b0\uff09\u306f\u3001\u5186\u5f62\u306e\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u2193\u4ee5\u4e0b\u304c\u30c6\u30b9\u30c8\u306e\u30bd\u30fc\u30b9\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<p>\u25bcHTML<\/p>\n<pre class=\"lang:xhtml decode:true \" title=\"HTML5\" >&lt;svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\"&gt;\r\n&lt;!-- \u307c\u304b\u3057\u52b9\u679c --&gt;\r\n  &lt;defs&gt;\r\n    &lt;filter id=\"SVG1\" x=\"0\" y=\"0\"&gt;\r\n      &lt;feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"15\" \/&gt;\r\n    &lt;\/filter&gt;\r\n  &lt;\/defs&gt;\r\n  &lt;rect width=\"90\" height=\"90\" stroke=\"yellow\" stroke-width=\"3\" fill=\"green\" filter=\"url(#SVG1)\" \/&gt;\r\n&lt;!-- \u30c9\u30ed\u30c3\u30d7\u30b7\u30e3\u30c9\u30fc --&gt;\r\n  &lt;defs&gt;\r\n    &lt;filter id=\"SVG2\" x=\"0\" y=\"0\" width=\"200%\" height=\"200%\"&gt;\r\n      &lt;feOffset result=\"offOut\" in=\"SourceGraphic\" dx=\"10\" dy=\"10\" \/&gt;\r\n      &lt;feColorMatrix result = \"matrixOut\" in = \"offOut\" type = \"matrix\" values = \"0.2 0 0 0 0 0 0.2 0 0 0 0 0 0.2 0 0 0 0 0 1 0\"\/&gt;\r\n      &lt;feGaussianBlur result=\"blurOut\" in=\"matrixOut\" stdDeviation=\"10\" \/&gt;\r\n      &lt;feBlend in=\"SourceGraphic\" in2=\"blurOut\" mode=\"normal\" \/&gt;\r\n    &lt;\/filter&gt;\r\n  &lt;\/defs&gt;\r\n  &lt;rect x=\"100\" y=\"100\" width=\"90\" height=\"90\" stroke=\"green\" stroke-width=\"3\" fill=\"yellow\" filter=\"url(#SVG2)\" \/&gt;\r\n&lt;!-- \u6c34\u5e73\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 --&gt;\r\n  &lt;defs&gt;\r\n    &lt;linearGradient id=\"SVG3\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"&gt;\r\n      &lt;stop offset=\"0%\" stop-color=\"yellow\" stop-opacity=\"1\" \/&gt;\r\n      &lt;stop offset=\"100%\" stop-color=\"GREEN\" stop-opacity=\"1\" \/&gt;\r\n    &lt;\/linearGradient&gt;\r\n  &lt;\/defs&gt;\r\n  &lt;rect x=\"200\" y=\"200\" width=\"90\" height=\"90\" fill=\"url(#SVG3)\" \/&gt;\r\n&lt;!-- \u5782\u76f4\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 --&gt;\r\n  &lt;defs&gt;\r\n    &lt;linearGradient id=\"SVG4\" x1=\"0%\" y1=\"0%\" x2=\"0%\" y2=\"100%\"&gt;\r\n      &lt;stop offset=\"0%\" stop-color=\"yellow\" stop-opacity=\"1\" \/&gt;\r\n      &lt;stop offset=\"100%\" stop-color=\"GREEN\" stop-opacity=\"1\" \/&gt;\r\n    &lt;\/linearGradient&gt;\r\n  &lt;\/defs&gt;\r\n  &lt;rect x=\"300\" y=\"300\" width=\"90\" height=\"90\" fill=\"url(#SVG4)\" \/&gt;\r\n&lt;!-- \u50be\u659c\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 --&gt;\r\n  &lt;defs&gt;\r\n    &lt;linearGradient id=\"SVG5\" x1=\"100%\" y1=\"0%\" x2=\"0%\" y2=\"100%\"&gt;\r\n      &lt;stop offset=\"0%\" stop-color=\"yellow\" stop-opacity=\"1\" \/&gt;\r\n      &lt;stop offset=\"100%\" stop-color=\"GREEN\" stop-opacity=\"1\" \/&gt;\r\n    &lt;\/linearGradient&gt;\r\n  &lt;\/defs&gt;\r\n  &lt;rect x=\"400\" y=\"400\" width=\"90\" height=\"90\" fill=\"url(#SVG5)\" \/&gt;\r\n&lt;!-- \u5186\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 --&gt;\r\n  &lt;defs&gt;\r\n    &lt;radialGradient id=\"SVG6\" cx=\"50%\" cy=\"50%\" r=\"50%\" fx=\"50%\" fy=\"50%\"&gt;\r\n      &lt;stop offset=\"0%\" stop-color=\"yellow\" stop-opacity=\"1\" \/&gt;\r\n      &lt;stop offset=\"100%\" stop-color=\"GREEN\" stop-opacity=\"1\" \/&gt;\r\n    &lt;\/radialGradient&gt;\r\n  &lt;\/defs&gt;\r\n  &lt;rect x=\"500\" y=\"500\" width=\"90\" height=\"90\" fill=\"url(#SVG6)\" \/&gt;\r\n\r\n&lt;\/svg&gt;<\/pre>\n<p><a href=\"http:\/\/www.takaya-com.jp\/archives\/demo\/SvgPart4\/\" target=\"_blank\">\u30c7\u30e2\u30da\u30fc\u30b8\u306f\u3001\u3053\u3061\u3089<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25ceSVG\u8981\u7d20\uff08\u30bf\u30b0\uff09\u306e\u8a18\u8ff0\u306b\u3064\u3044\u3066\uff08\u305d\u306e\uff14\uff09 \u4ee3\u8868\u7684\u306a\u300c\u307c\u304b\u3057\u52b9\u679c\u300d\u300c\u30c9\u30ed\u30c3\u30d7\u30b7\u30e3\u30c9\u30fc\u300d\u300c\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u300d\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u898b\u307e\u3057\u305f\u3002 \uff33\uff36\uff27\u8981\u7d20\uff08\u30bf\u30b0\uff09\u3067\u4f7f\u7528\u51fa\u6765\u308b\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u4e00\u89a7\u306f\u3001\u4e0b\u8a18\u306e\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,3],"tags":[],"_links":{"self":[{"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/posts\/241"}],"collection":[{"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":1,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"predecessor-version":[{"id":242,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/posts\/241\/revisions\/242"}],"wp:attachment":[{"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}