Drag the black dots. Move the slider to change the pattern. 黒いドットをドラッグしてくださ。 スライダーを動かすと模様が変わります。
I changed the method of checking the positional relationship between the sides and points of the triangle to the method of using the touch function. 三角形の辺と点との位置関係を調べる方法を変更し、(に触れた?)の機能を使いました。