comparison tests/test_panel.nim @ 1137:a4aa9f374d44

did: more renaming
author sam <sam@basx.dev>
date Tue, 04 Jun 2024 20:51:22 +0700
parents 71315636ba82
children 02e1d2658ff5
comparison
equal deleted inserted replaced
1136:71315636ba82 1137:a4aa9f374d44
31 font = loadFont("DejaVuSans.ttf", lineHeightPixels = 210'f32) 31 font = loadFont("DejaVuSans.ttf", lineHeightPixels = 210'f32)
32 scene = Scene(name: "main") 32 scene = Scene(name: "main")
33 origin = initPanel( 33 origin = initPanel(
34 transform = Scale(0.005, 0.005), 34 transform = Scale(0.005, 0.005),
35 color = NewVec4f(1, 1, 1, 1), 35 color = NewVec4f(1, 1, 1, 1),
36 texture = Texture(isGrayscale: false, colorImage: newImage[RGBAPixel](3, 3, [T, B, T, B, B, B, T, B, T]), sampler: NEAREST_SAMPLER), 36 texture = Texture(isGrayscale: false, colorImage: NewImage[RGBAPixel](3, 3, [T, B, T, B, B, B, T, B, T]), sampler: NEAREST_SAMPLER),
37 ) 37 )
38 button = initPanel( 38 button = initPanel(
39 transform = Translate(0.2, 0.1) * Scale(0.3, 0.1), 39 transform = Translate(0.2, 0.1) * Scale(0.3, 0.1),
40 color = NewVec4f(1, 0, 0, 0.5), 40 color = NewVec4f(1, 0, 0, 0.5),
41 onMouseDown = click, 41 onMouseDown = click,