Azgaars Blurry Map
Hey all. I'm taking a look at my importer for Azgaar's Fantasy Map Generator and wondering how I can improve the quality of the Map. In this case when I export an SVG from the tool and then import that SVG into Foundry it gets super blurry when I zoom in far, yet the base SVG doesn't. Any ideas? I'll post some pictures in a thread.
E
Ethck•815d ago
Zoomed really far in (in Foundry)
vs
Zoomed really far in (in Firefox)
E
Ethck•815d ago
My understanding of SVG is that since it's a vector it shouldn't be like this, so that leads me to believe I'm doing something wrong. Here's the relevant code.
https://github.com/Ethck/azgaar-foundry/blob/master/main.js#L272-L305
The FormApp gives a width x height and I take the width x height from the source map file (usually 1827x978) then create a scaling factor off of it in order to know what the new stretched size to be.
I have a feeling this is where I'm going wrong, but I'm unsure what exactly is causing this.
Should also note that the values
widthMultiplier
and heightMultiplier
are used for me to maintain a coordinate system for where to place map notes.Want results from more Discord servers?
More Postsccjmk overlaybut for what I wanted I think I *needed* to append it there so that I can overlay the whole screencliits very very early alpha demoMonarch APIAlright, adventurous ones: I have a Beta version of Monarch with the new components API!
Manifest: compacted chat cardsModules create problems to solve problems... Today's problem: "When I roll an attack, it eats the whdragdrop shenneneginsRight now, a user can drag a spell onto their character sheet. I store that in a 'spell' array and leffect mini modulesI've gotten to the point where I'm confident in releasing a slurry of tiny no-config Active Effect rdamage application hooksNew 5e Hook ideas, gimme yer thoughts:
`Hooks.call('Actor5e.preDamageApplied')`
args: `damageAmounthook conventionsRegarding hooks, is the convention that _all_ `pre...` hooks are executed on the machine that initiaexpand arraysIs there a way to `expandObject` except for an Array?edit-owned-item-effectI've made an abomination. This hacks its way past the limitations surrounding editing effects on own