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

Bug: unable to see "Hello world" text from readme example? #474

Closed
cmdcolin opened this issue Feb 25, 2024 · 2 comments · Fixed by #478
Closed

Bug: unable to see "Hello world" text from readme example? #474

cmdcolin opened this issue Feb 25, 2024 · 2 comments · Fixed by #478

Comments

@cmdcolin
Copy link

Current Behavior

renders the bunny but not the hello world(?)

Expected Behavior

renders the hello world

Steps to Reproduce

copy from readme
running example on stackblitz https://stackblitz.com/edit/vitejs-vite-8xdhfy?file=src%2FApp.tsx

Environment

pixi.js@"^7.4.0"
@pixi/react@"^7.1.1"
[email protected]
[email protected] project
firefox 122.0.1 snap
ubuntu 23

Possible Solution

No response

Additional Information

console log with hello:true
PixiJS 7.4.0 - WebGL 2 - https://pixijs.com

screenshot
image

@cmdcolin
Copy link
Author

i am only asking cause the code sample has code like


      <Container x={200} y={230}>
        <Text
          text="Hello World"
          anchor={{ x: 0.5, y: 0.5 }}
          filters={[blurFilter]}
        />
      </Container>

note: new to pixi :) just looking about

@zOadT
Copy link
Contributor

zOadT commented Feb 25, 2024

Oh yes, but its just that we render black text on a black background here. Changing the color makes it visible:

import { BlurFilter, TextStyle } from 'pixi.js'; // add TextStyle import
// [...]
      <Container x={200} y={230}>
        <Text
          text="Hello World"
          anchor={{ x: 0.5, y: 0.5 }}
          filters={[blurFilter]}
          style={new TextStyle({
            fill: ['#ffffff'],
          })}
        />
      </Container>

@Zyie Zyie linked a pull request Mar 20, 2024 that will close this issue
@Zyie Zyie closed this as completed in #478 Mar 20, 2024
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

Successfully merging a pull request may close this issue.

2 participants