0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

windows11で、sketchup6 その103

Posted at

概要

windows11に、sketchup6を入れてみた。
rubyで、3Dを書く。
練習問題やってみた。

練習問題

九九をアニメーションせよ。

写真

image.png

サンプルコード

class Kuku
	def initialize
		model = Sketchup.active_model
		@entities = model.active_entities
		coordinates = [10, 10, 10]
		@point = Geom::Point3d.new coordinates
		@text = @entities.add_text "This is a Test", @point
		@k = 0
		@tid = UI.start_timer(1.9, true) {
			tick
		}
	end
	def tick
		@text.erase!
		i = Integer(@k / 9) + 1
		j = @k % 9 + 1
		if (j > 0)
			puts "#{i}x#{j}=#{i * j}"
		end
		@text = @entities.add_text "#{i}x#{j}=#{i * j}", @point
		@k += 1
	end
end

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?