gretmn102 / gretmn102/FsharpMyExtension

feat(Graphics): add `Size` type

Open Beginner friendly
#24 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
F#
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```fsharp
type Size =
{
Width: int
Height: int
}
static member (*) ((this: Size), (scale: float)) =
let apply (side: int) =
int (float side * scale)
{
Width = apply this.Width
Height = apply this.Height
}
static member (*) ((scale: float), (this: Size)) =
this * scale

[]
[]
module Size =
let create w h = {
Width = w
Height = h
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue provides the complete F# Size definition but names no file or test. First locate the Graphics area and related types in the repository, then run the project’s existing build or test command. Done means the Size type, module, and scaling operators compile and fit the library’s conventions.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
computer-graphics
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.