AntoniaChimp Posted May 1, 2019 Share Posted May 1, 2019 Hey ! I was able to resize my canvas so it always fills the whole screen, with app.renderer.view.style.position = "absolute"; app.renderer.view.style.display = "block"; app.renderer.autoResize = true; app.renderer.resize(window.innerWidth, window.innerHeight); But if I put sprites or graphics on it, their position is always pixel based. So if I change the resolution of the screen it isnt on the same position anymore relatively. Is it possible to position them with % or relatively to bottom left corner ? I mean without setting concrete pixels which are different on every screen resolution. Or do I have to write more or less a form of media queries ? Quote Link to comment Share on other sites More sharing options...
botmaster Posted May 1, 2019 Share Posted May 1, 2019 pixi is not gonna do that job for you, you have to write your own code/solution to handle this. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 1, 2019 Share Posted May 1, 2019 Another possible solution is to fix canvas width/height and scale it saving the aspect ratio: https://github.com/ivanpopelyshev/pixi-starfighter Its fine if linear filtering works for your case. Otherwise, you have to use "resize" and adjust stage scale. There's no packaged solution in pixijs for that. Quote Link to comment Share on other sites More sharing options...
Olloverr Posted January 28, 2023 Share Posted January 28, 2023 (edited) It is also difficult for me to cope with the preparation of a high-quality presentation on my own, especially if it is a responsible task for a meeting with investors. In such cases, I use custom powerpoint slides It helps me to convey a main idea that is supported by thorough research, graphs, charts and content that cannot be ignored. Edited February 3, 2023 by Olloverr specification Quote Link to comment Share on other sites More sharing options...
Nico Ray Posted 5 hours ago Share Posted 5 hours ago On 5/1/2019 at 10:04 AM, AntoniaChimp said: Hey ! I was able to resize my canvas so it always fills the whole screen, with app.renderer.view.style.position = "absolute"; app.renderer.view.style.display = "block"; app.renderer.autoResize = true; app.renderer.resize(window.innerWidth, window.innerHeight); But if I put sprites or graphics on it, their position is always pixel based. So if I change the resolution of the screen it isnt on the same position anymore relatively. Is it possible to position them with % or relatively to bottom left corner ? I mean without setting concrete pixels which are different on every screen resolution. Or do I have to write more or less a form of media queries ? Branding and visual identity play such a huge role in how small businesses present themselves to the world. As someone who frequently teaches design fundamentals and branding workshops, I'm always looking for ways to present client proposals and branding lessons seamlessly. I started using a specialized AI presentation maker https://decksyai.com/ai-presentation-maker-for-teachers/ designed for educators and mentors to structure my design lectures and client pitch templates. It builds clean, organized slides in minutes, which keeps my students engaged throughout the entire lesson. Having a reliable tool to turn raw creative ideas into crisp educational slideshows has been a total game-changer for my teaching routine. Looking forward to seeing more of your brilliant logo designs! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.