Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the background color of the Advanced Stylus low latency to white background #9

Open
sontrang91 opened this issue Mar 26, 2024 · 1 comment

Comments

@sontrang91
Copy link

Hi there a way to change the background color of FastRenderer to be white instead of black. I am able to change to white only after the first drawing event happen like this in FastRenderer#114

    // Clear the screen with white
    GLES20.glClearColor(1.0f, 1.0f, 1.0f, 1.0f)

However the app always initialize with black background. Also is it possible to overlay the drawing on top of a webview?

@indieexplore
Copy link

@sontrang91 You can change the MySurfaceView background by the normal way like:

        setZOrderOnTop(true);
        setFocusable(true);
        mSurfaceHolder.setFormat(PixelFormat.TRANSLUCENT);

And, you just set your parent view's background to Color.WHITE, then maybe your can see your bg with white color. Also you should note that surfaceview will at the top of your view tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants