From 66d3f1b26b4e2da39ba47acb6979c8f0fad55f10 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Sat, 19 Aug 2023 18:41:46 +0300 Subject: [PATCH] Code formatting in main function --- Sources/geometrize-cli/main.swift | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Sources/geometrize-cli/main.swift b/Sources/geometrize-cli/main.swift index 0a8e8ae..3db1028 100644 --- a/Sources/geometrize-cli/main.swift +++ b/Sources/geometrize-cli/main.swift @@ -104,11 +104,18 @@ let rect = Rectangle( shapeData.append(ShapeResult(score: 0, color: targetBitmap.averageColor(), shape: rect)) var counter = 0 -while shapeData.count <= shapeCount /* Here set count of shapes final image should have. Remember background is the first shape. */ { +// Here in shapeCount set count of shapes final image should have. +// Remember background is the first shape. +while shapeData.count <= shapeCount { if options.verbose { print("Step \(counter)", terminator: "") } - let shapes = runner.step(options: runnerOptions, shapeCreator: nil, energyFunction: defaultEnergyFunction, addShapePrecondition: defaultAddShapePrecondition) + let shapes = runner.step( + options: runnerOptions, + shapeCreator: nil, + energyFunction: defaultEnergyFunction, + addShapePrecondition: defaultAddShapePrecondition + ) if shapes.isEmpty { if options.verbose { print(", no shapes added.", terminator: "")