Frame Blur (Flash's blur filter), child properties in Change All Frame Properties, flips under Visible
Blur is a layer frame's box blur, as Flash's low-quality BlurFilter: a box that many canvas pixels wide, averaged over the frame's crop (premultiplied) by the texture shader, the quad grown by its reach. An animation layer blurs its child's draws at least as much. It interpolates, copies, batches (clamped to 0-255), saves as an editor-only Blur attribute and counts as an Isaac issue. Change All Frame Properties gains the Child section (animation, mode, start frame, random, restart), applied only to animation layers and disabled when no animation layer is targeted. Frame Properties' Flip X/Y sit below Visible instead of inside Child. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6b6cd671f7
commit
0adb0f89bc
26 files changed
+308
-48
No files matched your search
@@ -58,6 +58,25 @@ TEST_CASE("a layer frame's depth moves it among the layers for that frame only")
|
||||
CHECK(model::isaac_issues_get(anm2).depthFrames == 1);
|
||||
}
|
||||
|
||||
TEST_CASE("a layer frame's blur reaches its child's draws and stays out of the game's copy")
|
||||
{
|
||||
auto anm2 = model_load(file_load(TEST_DIR / "render" / "nested.anm2"));
|
||||
anm2.frame_edit({0, LAYER, 1, 0})->blur = 6.0f;
|
||||
bool isAnyChild{};
|
||||
for (const auto& draw : model::animation_draws_get(anm2, *anm2.animation_get(0), {}))
|
||||
if (draw.type == model::DrawType::LAYER && draw.id == 1)
|
||||
{
|
||||
isAnyChild = true;
|
||||
CHECK(draw.frame.blur >= 6.0f);
|
||||
}
|
||||
CHECK(isAnyChild);
|
||||
|
||||
auto text = model::model_to_string(anm2);
|
||||
CHECK(game_document_get(text).find("Blur") == std::string::npos);
|
||||
CHECK(model_load(text).frame_get({0, LAYER, 1, 0})->blur == 6.0f);
|
||||
CHECK(model::isaac_issues_get(anm2).blurFrames == 1);
|
||||
}
|
||||
|
||||
TEST_CASE("an animation layer draws its child animation, from this file or a library")
|
||||
{
|
||||
auto anm2 = model_load(file_load(TEST_DIR / "render" / "nested.anm2"));
|
||||
|
||||
Reference in new issue
Block a user