# HG changeset patch # User Sam # Date 1675531207 -25200 # Node ID 31ccaeee09c9789620b849df80e0e621eaf3be56 # Parent 44bae6c72834b165a6dd4116f8db66e8a6bf9c5b add: nicer keyboard demo diff -r 44bae6c72834 -r 31ccaeee09c9 examples/E04_input.nim --- a/examples/E04_input.nim Sun Feb 05 00:15:48 2023 +0700 +++ b/examples/E04_input.nim Sun Feb 05 00:20:07 2023 +0700 @@ -47,6 +47,7 @@ ) keyDimension = 50'f32 keyGap = 10'f32 + backgroundColor = Vec4([1'f32, 0.3'f32, 0.3'f32, 0'f32]) baseColor = Vec4([1'f32, 0'f32, 0'f32, 0'f32]) activeColor = Vec4([1'f32, 1'f32, 1'f32, 0'f32]) keyIndices = [ @@ -190,10 +191,10 @@ Vec3([0'f32, 1'f32, 0'f32]), ], useOnDeviceMemory: true), color: ColorAttribute[Vec4](data: @[ - baseColor * 0.5'f32, - baseColor * 0.5'f32, - baseColor * 0.5'f32, - baseColor * 0.5'f32, + backgroundColor, + backgroundColor, + backgroundColor, + backgroundColor, ]), transform: ModelTransformAttribute(data: @[Unit44]), )