# HG changeset patch # User Sam # Date 1675531207 -25200 # Node ID 3ec1be39e1ad33354ac70b243c9e79d414854ace # Parent de433a47e63530697acf7108032d3a8093c71f79 add: nicer keyboard demo diff -r de433a47e635 -r 3ec1be39e1ad 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]), )