Bug description
Can't seem to change the color of vtkTextActor.
Doing the following does not change the text color, it's always black (full codesandbox linked below):
const actor = vtkTextActor.newInstance();
actor.getProperty().setFontColor(255,255,255); // doctsring says 0-255 for RGB values
also tried actor.getProperty().setColor(), same behavior. Is there another way I should be setting the text color?
Steps to reproduce
here's a modification of the textActor example with RGB inputs:
https://codesandbox.io/p/devbox/vtkjs-vector-text-forked-3dkx24?workspaceId=ws_7cQK1iKXMw8NPVoWmC7hHm
Detailed Behavior
No response
Expected Behavior
Should be able to set the color of a vtkTextActor
Environment
- vtk.js version: 35.4.0
- Browsers: firefox
- OS: macos
Bug description
Can't seem to change the color of vtkTextActor.
Doing the following does not change the text color, it's always black (full codesandbox linked below):
also tried
actor.getProperty().setColor(), same behavior. Is there another way I should be setting the text color?Steps to reproduce
here's a modification of the textActor example with RGB inputs:
https://codesandbox.io/p/devbox/vtkjs-vector-text-forked-3dkx24?workspaceId=ws_7cQK1iKXMw8NPVoWmC7hHm
Detailed Behavior
No response
Expected Behavior
Should be able to set the color of a
vtkTextActorEnvironment