Skip to content

Commit

Permalink
Merge pull request #464 from Harry121199/main
Browse files Browse the repository at this point in the history
Added letter K to starwar
  • Loading branch information
AnshumanMahato authored Oct 19, 2023
2 parents b7d4446 + ae00b18 commit 13ade95
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 42 deletions.
79 changes: 38 additions & 41 deletions Fonts/starwar/starwar.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Starwar : public Fonts

char **G()
{
char **character = getCharGrid(6,10);
char **character = getCharGrid(6, 10);

character[0][2] = character[0][3] = character[0][4] = character[0][5] = character[0][6] = character[0][7] = character[0][8] = character[1][4] = character[1][5] = character[1][6] = character[1][7] = character[1][8] = character[2][6] = character[2][7] = character[3][6] = character[4][4] = character[4][5] = character[5][2] = character[5][3] = character[5][4] = character[5][5] = character[5][6] = character[5][7] = '_';
character[1][1] = '/';
Expand Down Expand Up @@ -138,16 +138,20 @@ class Starwar : public Fonts
return character;
}

/*
char **K()
{
char **character = getCharGrid(ROWS,COLS);
char **K()
{
char **character = getCharGrid(6, 8);

//Enter the character grid in ROWS X COLS
character[1][0] = character[2][0] = character[3][0] = character[4][0] = character[5][0] = character[1][3] = character[5][3] = '|';
character[0][1] = character[0][2] = character[0][5] = character[0][6] = character[0][7] = character[5][1] = character[5][2] = character[5][5] = character[5][6] = character[5][7] = '_';
character[2][3] = '\'';
character[4][3] = '.';
character[3][5] = '<';
character[1][4] = character[1][7] = character[2][6] = '/';
character[5][4] = character[5][7] = character[4][6] = '\\';

return character;
}
*/
return character;
}

char **L()
{
Expand Down Expand Up @@ -338,21 +342,18 @@ class Starwar : public Fonts
return character;
}


char **Y()
{
char **character = getCharGrid(6,13);

//Enter the character grid in ROWS X COLS
character[0][1] = character[0][2] = character[0][3] = character[0][0] = character[0][8] = character[0][9] = character[0][10] = character[0][11] = character[3][3] = character[3][8] = character[5][5] = character[5][6] = '_';
character[1][0] = character[2][1] = character[3][2] = character[1][4] = character[2][5] = '\\';
character[1][7] = character[2][6] = character[1][11] = character[2][10] = character[3][9] = '/';
character[4][4] = character[5][4] = character[4][7] = character[5][7] = '|';
char **Y()
{
char **character = getCharGrid(6, 13);

// Enter the character grid in ROWS X COLS
character[0][1] = character[0][2] = character[0][3] = character[0][0] = character[0][8] = character[0][9] = character[0][10] = character[0][11] = character[3][3] = character[3][8] = character[5][5] = character[5][6] = '_';
character[1][0] = character[2][1] = character[3][2] = character[1][4] = character[2][5] = '\\';
character[1][7] = character[2][6] = character[1][11] = character[2][10] = character[3][9] = '/';
character[4][4] = character[5][4] = character[4][7] = character[5][7] = '|';

return character;
}

return character;
}

/*
char **Z()
Expand All @@ -367,10 +368,9 @@ class Starwar : public Fonts

// Lowercase


char **a()
{
char **character = getCharGrid(6,13);
char **character = getCharGrid(6, 13);

character[5][0] = character[4][1] = character[3][2] = character[2][3] = character[1][4] = character[5][3] = character[3][5] = '/';
character[1][8] = character[2][9] = character[3][10] = character[4][11] = character[5][12] = character[3][7] = character[5][9] = '\\';
Expand Down Expand Up @@ -752,23 +752,20 @@ class Starwar : public Fonts
return character;
}


char **six()
{
char **character = getCharGrid(6,7);

//Enter the character grid in ROWS X COLS
character[0][3] = character[0][4] = character[2][4] = character[3][3] = character[4][3] = character[5][2] = character[5][3] = character[5][4] = '_';
character[1][2] = character[1][4] = character[2][1] = character[2][3] = character[5][5] = '/';
character[3][0] = character[4][0] = character[4][6] = '|';
character[3][5] = character[5][1] = '\\';
character[4][2] = '(';
character[4][4] = ')';
character[3][2] = '.';
return character;
}
char **six()
{
char **character = getCharGrid(6, 7);


// Enter the character grid in ROWS X COLS
character[0][3] = character[0][4] = character[2][4] = character[3][3] = character[4][3] = character[5][2] = character[5][3] = character[5][4] = '_';
character[1][2] = character[1][4] = character[2][1] = character[2][3] = character[5][5] = '/';
character[3][0] = character[4][0] = character[4][6] = '|';
character[3][5] = character[5][1] = '\\';
character[4][2] = '(';
character[4][4] = ')';
character[3][2] = '.';
return character;
}

char **seven()
{
Expand All @@ -780,7 +777,7 @@ class Starwar : public Fonts
return character;
}

char **eight()
char **eight()
{
char **character = getCharGrid();
// Enter the character grid in ROWS X COLS
Expand Down
2 changes: 1 addition & 1 deletion example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ using namespace ascii;
int main()
{
Ascii a = Ascii(starwar);
a.print("3");
a.print("K");
return 0;
}

0 comments on commit 13ade95

Please sign in to comment.