imgui-js icon indicating copy to clipboard operation
imgui-js copied to clipboard

ImGui.TextColored failed to change color when use CanvasRenderingContext2D

Open 40kg opened this issue 4 years ago • 1 comments

I try to show text with red color by ImGui.TextColored, it works good with webgl, but failed with CanvasRenderingContext2D. I use imgui_imp.ts as my render code, and get canvas by getContext("2d"). Could you give me some help, Thanks a lot!

40kg avatar Jul 16 '21 09:07 40kg

Well, I resolve it by use another canvas with webgl, then draw the new canvas as a image to main canvas.

40kg avatar Jul 19 '21 07:07 40kg