Code Monkey home page Code Monkey logo

Comments (9)

GPeaky avatar GPeaky commented on May 27, 2024 1

This is what an example doit in tauri, i am trying to make it work with floem, but at the moment i could not doit

from floem.

GPeaky avatar GPeaky commented on May 27, 2024

In windows

from floem.

panekj avatar panekj commented on May 27, 2024

All windows in floem are transparent by default

from floem.

GPeaky avatar GPeaky commented on May 27, 2024

Okay!, thanks i will try it. Floem have better performance than other options like tauri?

from floem.

dominikwilkowski avatar dominikwilkowski commented on May 27, 2024

Can you share what you end up with here once you got something transparent working. I'd love to use it too and maybe add it to the examples too

from floem.

GPeaky avatar GPeaky commented on May 27, 2024

Screenshot 2023-12-18 210120

All the leaderboards, etc. are external to the game, and are fully transparent (The game in running in a windowed Fullscreen)

from floem.

dominikwilkowski avatar dominikwilkowski commented on May 27, 2024

Can you share the code for the transparent window?

from floem.

jrmoulton avatar jrmoulton commented on May 27, 2024

@GPeaky the issue is here

alpha_mode: wgpu::CompositeAlphaMode::Auto,

The issue is that vger auto selects the blend mode for the alpha channel and by default sets it to opaque and makes it so that windows aren't transparent. On macOS i need to change this to PostMultiplied in order to get it to work.

This should be fixable in a configurable way but I'm not sure how

from floem.

jrmoulton avatar jrmoulton commented on May 27, 2024

After changing to PostMultiplied and setting my backround color to have a 70% alpha.
Screenshot 2023-12-18 at 1 58 21 PM

I think this setting is platform dependent. @dzhou121 might know more

from floem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.