generated at
ScrapRunのテストページ

puml
@startgantt hide footbox Project starts 2021-11-30 [12月上旬] starts 2021-12-01 and ends 2021-12-10 [12月中旬] starts 2021-12-11 and ends 2021-12-20 [11月下旬] starts 2021-12-21 and ends 2021-12-31 -- 行事 -- [冬至] happens 2021-12-22 [クリスマス] starts 2021-12-24 and ends 2021-12-25 [仕事納め] happens 2021-12-28 [大晦日] happens 2021-12-31 @endgantt
test.puml
@startuml Bob -> Alice: Hello @enduml

glsl
#ifdef GL_ES precision mediump float; #endif #extension GL_OES_standard_derivatives : enable uniform float u_time; uniform vec2 u_mouse; uniform vec2 u_resolution; float circle(float r, float radius, float stroke_width) { return (abs(r - radius) <= stroke_width) ? 1. : 0.; } float line(vec2 p, float y, float stroke_width){ return abs(p.y - y) <= stroke_width ? 1. : 0.; } vec2 rotate(vec2 v, float th) { return vec2(cos(th) * v.x - sin(th) * v.y, sin(th) * v.x + cos(th) * v.y); } float hexagram(vec2 p, vec2 center, float radius, float stroke_width) { float r = length(p - center); float f_inside = 1. - step(radius, r); float f_circle = circle(r, radius, stroke_width * 2.); float f_lines = 0.; for(int i = 0; i <3; i++){ f_lines += line(rotate(p, 2. * 3.1415 / 3. * float(i)), radius / 2., stroke_width); } for(int i = 0; i <3; i++){ f_lines += line(rotate(p, 2. * 3.1415 / 3. * (float(i) + .5)), radius / 2., stroke_width); } float addition = f_lines + f_circle; float multiplication = addition * f_inside; return multiplication; } void main() { vec2 from_center_x2 = (gl_FragCoord.xy * 2. - u_resolution); vec2 p = from_center_x2 / min(u_resolution.y, u_resolution.x); //vec2 p = rotate(p_, time); float addition = 0.; float radius = .8; float stroke_width = 0.01; for(int i = 0; i <10; i++){ addition += hexagram(rotate(p, .5 * u_time * float(i + 1)), vec2(0., 0.), radius, stroke_width); radius /= 2.; stroke_width /= 2.; } float multiplication = addition * 1.; gl_FragColor=vec4(multiplication); }

sample.svg
faefre fefeeafea
sample.svg
arearekjiji 新しい行 ああガ

test.svg
<svg xml="1.0"> <script> scriptはrenderingされない? 文法ミスってるのかも </script> SVG を出力するテスト </svg>

circle.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100"> <circle cx="50" cy="50" r="50" fill="orange"/> <text x="" y="50" font-size="1em" fill="red" font-weight="bold">君たちは</text> <text x="" y="80" font-size="1em" fill="red" font-weight="bold">どう生きるか</text> </svg>

square.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="200" height="200"> <g stroke-width="0.1"> <g fill="red"> <rect x="0" y="0" width="10" height="10"/> <rect x="12" y="1" width="10" height="10"/> </g> <g stroke="lightgray" text-anchor="end" font-size="0.05em"> <line x1="1" y1="0" x2="1" y2="20"/> <line x1="0" y1="1" x2="20" y2="1"/> <text x="1" y="1" dx="-0.1" dy="-0.1">0</text> </g>  <polygon points="0,0 0,20, 20,20, 20,0" stroke="#ccc" fill="none"/> </g> </svg>

tikz(tex)
\usepackage{circuitikz} \usepackage{amsfonts} \begin{document} \begin{circuitikz}[american, voltage shift=0.5] \draw (0,0) to[isource, l=$I_0$, v=$V_0$] (0,3) to[short, -*, i=$I_0$] (2,3) to[R=$R_1$, i>_=$i_1$] (2,0) -- (0,0); \draw (2,3) -- (4,3) to[R=$R_2$, i>_=$i_2$] (4,0) to[short, -*] (2,0); \end{circuitikz} \end{document}


graph.tikz(tex)
\usetikzlibrary{angles} \usetikzlibrary{quotes} \begin{document} \begin{tikzpicture}[domain=-2:4,yscale=1,samples=200,>=latex,thick] %\clip (0,0) rectangle (5,5);% 切り抜き \draw[thick,->] (-1,0) -- (4,0) node[right] {$x$};% x軸 \draw[thick,->] (0,-1) -- (0,4) node[below left] {$y$};% y軸 %\draw (0,0) node[below left] {O};% 原点 \coordinate (O) at (0,0); \draw[domain=-0.5:2,color=black] plot (\x, {2*\x}) node[right] {$y=2x$}; \draw[domain=-1:4,color=black] plot (\x, {-2/3*\x+2}) node[right] {$2x+3y=6$}; \draw[domain=-1:4,color=black] plot (\x, {3/2}) node[right] {$y=\frac{3}{2}$}; \coordinate (A) at (1,2); \coordinate (O) at (3/4,3/2); \coordinate (B) at (2,3/2); \coordinate (C) at (2,2/3); \pic["$\alpha$",draw=black,->,very thick,angle eccentricity=1.4,angle radius=8mm] {angle=B--O--A}; \pic["$\beta$", draw=black,->,thick,angle eccentricity=1.4,angle radius=9mm] {angle=C--O--B};
graph.tikz(tex)
\end{tikzpicture} \end{document}

#2023-12-17 13:51:30