Giter Site home page Giter Site logo

Vector Graphics about twui HOT 9 CLOSED

avaidyam avatar avaidyam commented on August 26, 2024
Vector Graphics

from twui.

Comments (9)

joshaber avatar joshaber commented on August 26, 2024

PRs are always welcome :)

from twui.

avaidyam avatar avaidyam commented on August 26, 2024

Oh, but it would be an extremely large change that might interrupt the workflow of others, so I think it'd be better to ask around first. -And the Core Layout one is ready.

from twui.

joshaber avatar joshaber commented on August 26, 2024

It seems like it'd be pretty centralized to TUIImage, right?

I'll be honest, I'm not sure I see the dire need but I wouldn't be opposed to it for those who'd prefer vector assets.

from twui.

avaidyam avatar avaidyam commented on August 26, 2024

Yeah, the core is built into TUIImage, but I've built it for ease-of-use into all the buttons and controls and whatnot. I could just PR for the TUIImage that supports vectors, and I guess that could work for now?

I just think it's a LOT easier than going bitmap mode with @2x pngs and all.

from twui.

lorenbrichter avatar lorenbrichter commented on August 26, 2024

I'm no fan of these bloated @2x pngs, but vectors have downsides also. Loading and drawing is slower, and you have to be very careful about landing on half pixels. Designers also need to use a different workflow to generate assets. Think it's awesome to support, as long as people who use it know the tradeoffs.

from twui.

avaidyam avatar avaidyam commented on August 26, 2024

Alright then, I'll strip it down into a TUIImage category, and TwUI developers can use if it they wish. @joshaber Core Layout is pretty much ready too - i've fixed the bugs and removed the comment block.

from twui.

joshaber avatar joshaber commented on August 26, 2024

It's also worth nothing that in Mac OS X land, Retina support is typically done with multirepresentational TIFFs. Xcode squashes @2x images down into a TIFF by default. Supporting that, in my mind, is much more important than vector support.

from twui.

avaidyam avatar avaidyam commented on August 26, 2024

Whoah, I think I may have just overlooked all of that. Xcode 4.3 even asks me if I want to do that. How did I not notice? Interesting, I think after Core Layout's done, i'll be patching in multi-rep TIFF (I'll check this out very shortly) and PDF/AI support (Yeah, drag and drop illustrator files work!).

from twui.

avaidyam avatar avaidyam commented on August 26, 2024

Pushed to my fork, and it should show up in the yet-un-pulled pull request. I'm still looking into TIFF support, so if someone could link me as to where this is mentioned, I'd be glad to add support for it.

from twui.

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.