Comments (14)
Hey! If you don't want to mess around with the build system, just use a pre-compiled release. Download the zip file, not the source code.
There is documentation about creating respacks here.
I have deliberately left directory listing on for my site, so you can download some example respacks here.
There are also a bunch more on the Hues Portal.
Good luck!
from 0x40-web.
Thanks for your detailed response! I've downloaded both the source and and pre-compiled release - I just don't know how to run it :)
gulp seems to compile it, and I'm used to npm start, which doesn't work here. What's the command you use to run it on localhost?
from 0x40-web.
I just use python -m http.server
to locally host, but you can use literally any local-hosting server to do it for you. I know that npm has some packages.
See more:
https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server
from 0x40-web.
Thanks for your answer. Finally got it to run. I'm guessing if I wanted to mess with the software, I'd have to use the source code instead of minified release? I'd personally remove all the hues and make some other tweaks for a hobby project of mine. Just checking if that can be done in minified version as well.
from 0x40-web.
If you've already set up everything and gulp creates a .js.min, I'd recommend modifying the source and building minified bundles that way. Modifying the .min directly is quite a painful experience.
from 0x40-web.
Got it. So I made my own respack, and I've edited index.html to point to it instead of DefaultHues, however, it still plays default. Yes, I used gulped before running the web app. I'm not sure what I'm missing tbh. Lol, I even deleted default respacks from my folder and they still played as usual.
from 0x40-web.
As a sanity check - modify the <title>
in index.html. Does it change? Perhaps your local server is not pointing at the right place?
from 0x40-web.
Yeah, that changed something alright. Even though I changed defaults to my own respack, I get this
Error: 404: Could not fetch respack at ./respacks/Defaults_v5.0.zip
I'm also using python python -m http.server
. I didn't mess with any other files except index.
from 0x40-web.
What does your index.html look like? Specifically, what is the defaults
object?
from 0x40-web.
var defaults = { workersPath : "lib/workers/", respacks : ["./respacks/myrespack.zip"], firstSong : "mysong", };
from 0x40-web.
That is quite curious - if you'd like, you can zip up your entire custom build and I can take a look. Feel free to send it via email.
Failing that - does it still happen with the original hues.min.js? I wonder if you edited the defaults object in the .js before compiling.
from 0x40-web.
Never mind, for some reason, it started loading now. And it works. Now I just got one more question, sorry. The pictures I'm using are varying in size, some I can see properly, some are stretched beyond web app borders. Also, the purple hue is there. How would I go about making all the pics "sit" in the center of the screen, keeping their original resolution, and how would I completely disable hues? Honestly, I just want to use this as an image gallery with music playing in the background haha
from 0x40-web.
Also @dascar5 I hope you're not too bothered by these extra emails, I've just realised I never responded to your most recent question.
Hues is pretty much locked to the concept of "image always fill full height, width is scaled to fit". It's not really designed to be a slideshow. That being said, I can see a lot of value in having special modes (through the options object, not anything visible) to both enable "scale to fit" behaviour and "no colour overlay" behaviour. Would that be sufficient, or has your project fallen by the wayside in the past 2 years 😅
from 0x40-web.
I've cleaned up the comments of this issue, @thisfardi please move to #80
from 0x40-web.
Related Issues (20)
- Whiteout effect while inverted has glitchy bright frame during fade HOT 2
- Animation sometimes isn't correct when using an animaition with beatsPerAnim and a song without charsPerBeat HOT 1
- Is this a stream audio play? HOT 1
- volume parameter doesn't works on defaults object HOT 1
- Volume cuts out per-song after a while HOT 2
- Error: Audio Worker cannot be started - correct path set in defaults? HOT 4
- "mute" works incorrectly HOT 5
- cdn.0x40.ga is down HOT 2
- Large repack does not load on Firefox/IE HOT 3
- First song can't be from querried packs. HOT 5
- 0x40 Christmas edition is insufficiently comfy HOT 8
- xmas.moe is missing an https redirect HOT 5
- Fullscreen option? HOT 7
- please fix this please HOT 3
- Add support for the Opus codec? HOT 4
- Are the VFX generated only from the respacks? HOT 6
- UI/UX - Toggle window and select the right tab when clicking UI icons
- Local python hosting of hues has HTTP 204 no content for respacks HOT 7
- Remote respacks not loading HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 0x40-web.