<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>数学 on akky@サイボウズラボ・ブログ</title>
		<link>https://labs.cybozu.co.jp/blog/akky/tags/%E6%95%B0%E5%AD%A6/</link>
		<description>Recent content in 数学 on akky@サイボウズラボ・ブログ</description>
		<generator>Hugo</generator>
		<language>ja</language>
		
		
		
		
			<lastBuildDate>Wed, 29 Jun 2022 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://labs.cybozu.co.jp/blog/akky/tags/%E6%95%B0%E5%AD%A6/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>hexyzland - 数式で六角形の図形表示を動かす遊び場サイト</title>
				<link>https://labs.cybozu.co.jp/blog/akky/2022/06/playing-math-and-hex/</link>
				<pubDate>Wed, 29 Jun 2022 00:00:00 +0000</pubDate>
				<guid>https://labs.cybozu.co.jp/blog/akky/2022/06/playing-math-and-hex/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://ptol.github.io/hexyzland/&#34;&gt;hexyzland&lt;/a&gt; は、六角形ベースの図形を6つの変数と数式で動かす、プログラミング実験場です。&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://ptol.github.io/hexyzland/&#34;&gt;&lt;picture&gt;&#xA;  &lt;source type=&#34;image/webp&#34; srcset=&#34;https://labs.cybozu.co.jp/blog/akky/2022/06/playing-math-and-hex/hexyzland_hu_cc952e2ee41a9eb9.webp 480w, https://labs.cybozu.co.jp/blog/akky/2022/06/playing-math-and-hex/hexyzland_hu_dcb6835d5cbcd0fd.webp 700w&#34; sizes=&#34;(max-width: 56rem) 100vw, 54rem&#34;&gt;&#xA;  &lt;img src=&#34;https://labs.cybozu.co.jp/blog/akky/2022/06/playing-math-and-hex/hexyzland.png&#34; width=&#34;700&#34; height=&#34;791&#34; alt=&#34;&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hexyzland トップページ&lt;/p&gt;&#xA;&lt;p&gt;6つの変数は t(時間), r(中心からの距離), a(角度), x,y,z(3方向の座標) となっていて、各ヘックスの値を -1(真っ赤) から 1(真っ白)の間に変えることでヘックスのサイズと色が変わります。&lt;/p&gt;&#xA;&lt;p&gt;あとは数学的な関数を組み合わせればアニメーションのできあがり。チュートリアルにたくさんの実例が出ています。&lt;/p&gt;&#xA;&lt;p&gt;作成した図形は URL が生成されるので &lt;a href=&#34;https://ptol.github.io/hexyzland/#sin%28t%2Ba%2F30%2Br%258%29&#34;&gt;SNS 等で共有すること&lt;/a&gt;もできますし、動いているところを動画として保存することもできます。&lt;/p&gt;&#xA;&lt;p&gt;http://localhost:8099/wp-content/uploads/2022/06/hexyzland.webm&lt;/p&gt;&#xA;&lt;p&gt;GitHub に&lt;a href=&#34;https://github.com/ptol/hexyzland&#34;&gt;サイトのソースコードも公開&lt;/a&gt;されています。&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://tixy.land/&#34;&gt;tixyland&lt;/a&gt; という正方形ベースの&lt;a href=&#34;https://twitter.com/aemkei/status/1323399877611708416&#34;&gt;同様の遊び場&lt;/a&gt;があり、hexyzland はそれにインスパイアされたものだそうです。&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://tixy.land/&#34;&gt;&lt;picture&gt;&#xA;  &lt;source type=&#34;image/webp&#34; srcset=&#34;https://labs.cybozu.co.jp/blog/akky/2022/06/playing-math-and-hex/tixyland-top_hu_24f08c49dc8e97c3.webp 340w&#34; sizes=&#34;(max-width: 56rem) 100vw, 54rem&#34;&gt;&#xA;  &lt;img src=&#34;https://labs.cybozu.co.jp/blog/akky/2022/06/playing-math-and-hex/tixyland-top.png&#34; width=&#34;340&#34; height=&#34;467&#34; alt=&#34;&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;tixy.land トップページ&lt;/p&gt;&#xA;&lt;blockquote class=&#34;twitter-tweet&#34;&gt;&lt;p lang=&#34;en&#34; dir=&#34;ltr&#34;&gt;A collection of colorful examples from &lt;a href=&#34;https://t.co/664X7G2TH2&#34;&gt;https://t.co/664X7G2TH2&lt;/a&gt;:&lt;br&gt;&lt;br&gt;// sin cos sin cos sin cos&lt;br&gt;// by &lt;a href=&#34;https://x.com/inky?ref_src=twsrc%5Etfw&#34;&gt;@inky&lt;/a&gt; &lt;br&gt;(t,i,x,y)=&amp;gt;&lt;br&gt;((x^y)%2?sin:cos)(t)&lt;a href=&#34;https://t.co/fp20uLGg2Z&#34;&gt;https://t.co/fp20uLGg2Z&lt;/a&gt; &lt;a href=&#34;https://t.co/ymY0kg6hCl&#34;&gt;pic.twitter.com/ymY0kg6hCl&lt;/a&gt;&lt;/p&gt;&amp;mdash; Martin Kleppe (@aemkei) &lt;a href=&#34;https://x.com/aemkei/status/1326637580486578177?ref_src=twsrc%5Etfw&#34;&gt;November 11, 2020&lt;/a&gt;&lt;/blockquote&gt;&#xA;&lt;script async src=&#34;https://platform.x.com/widgets.js&#34; charset=&#34;utf-8&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;via reddit/programming&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
